I'm building a report in SSRS that shows achieved bonuses for each employee. I have added an additional column that multiplies the different factors to calculate the final bonus.
Now I need to add more columns, one that only shows the number of employees, that have achieved zero bonus in the totals-row and another column, that only shows the number of employees whom achieved bonus in the totals-row.
My expression to get the final bonus is:
=Fields!Faktor1.Value * Fields!Faktor2.Value * Fields!Faktor3.Value * Fields!Faktor4.Value
I've tried something like:
=COUNT(IIF(Fields!Faktor1.Value * Fields!Faktor2.Value * Fields!Faktor3.Value * Fields!Faktor4.Value)= 0,(Fields!Faktor1.Value * Fields!Faktor2.Value * Fields!Faktor3.Value * Fields!Faktor4.Value),NOTHING)
But that didn't work.
Thanks in advance for your help.
I think you can use a SUM with a one or zero instead of COUNT with your expression to make it work:
=SUM(IIF(Fields!Faktor1.Value * Fields!Faktor2.Value * Fields!Faktor3.Value * Fields!Faktor4.Value) = 0, 1, 0)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.