Link to home
Start Free TrialLog in
Avatar of vbnetcoder
vbnetcoder

asked on

SQL expression /// sum SSRS

In the following expression:

=Sum(iif(cint(Fields!Range.Value) >= 0 And cint(Fields!Range.Value) <= 124999
 And (Fields!Date2 = Max(iif(Fields!Range.Value >= 0 And Fields!Range.Value <= 124999 and Fields!Date1.Value
  =Max(Fields!Date1.Value,  "Master_Policy_Number")
  ,Fields!Date2, Nothing), "Master_Policy_Number")),
      cint(Fields!Range.Value), 0))

I need to sum 1 and ONLY one where the coditions are met..


How???
ASKER CERTIFIED SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you please explain in details your iisue.. currently your syntax is wrong
Avatar of vbnetcoder
vbnetcoder

ASKER

ty