Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Sum(Iif Expression

$
0
0

I am having a difficult time with this expression.

Sum(IIf(Fields!Sex_Code.Value = "Male", 1, 0), "Dataset") 

**This return will count all the Sex_Code.Values that have "Male" but it also counts all the Second Rows that contain Charges, Description of Charges and Type. 

In the design of the report I have several rows of data.

Row One - Date, Name, Address, City, Sex, Race, Age  (*This First row only returns one row of data)

Row Two - Charges, Description of Charges, Type  (*This Second row can return multiple rows of data)

Thank you in advance for any assistance you can offer.  Frank


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>