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

Sum non-Blank fields in Report Builder not working

$
0
0

I'm trying to use IIF to sum non-blank fields in a column in Report Builder, but it does no seem to be working.

This is the syntax I'm using and was wondering if it is correct:

=SUM(IIF(Fields!Child_Order_Reserve_Number.Value="",0,1))

There are two tables, one containing the view of all the data, and the other containing the above expression.  Both are connected to the same dataset.

The sum does not always match what is seen in the report.  For instance when I see 6 non-blank fields, it might say 2.


Viewing all articles
Browse latest Browse all 20764

Trending Articles