[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 778
  • Last Modified:

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???
0
vbnetcoder
Asked:
vbnetcoder
1 Solution
 
planoczCommented:
One thing you might want to look at is to  group your Query by Dates; then setup your sum expression per group
0
 
SThayaCommented:
Can you please explain in details your iisue.. currently your syntax is wrong
0
 
vbnetcoderAuthor Commented:
ty
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now