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

How to do a WHERE clause in =IIF(ISNOTHING(Sum(Fields!Asset.Value)),"-",Sum(Fields!Asset.Value))

$
0
0

I have this code

=IIF(ISNOTHING(Sum(Fields!Asset.Value)),"-",Sum(Fields!Asset.Value))


but I want it to do it where the Group=1

How do I change the line of code above to only sum the rows where the Group=1?

I tried this but it doesn't work:

=IIF(ISNOTHING(Sum(Fields!Asset.Value) WHERE Group=1),"-",Sum(Fields!Asset.Value) WHERE Group=1)

I got this to work but I really don't think it is accurate:

=IIF(Fields!Group.Value LIKE "1", IIF(ISNOTHING(Sum(Fields!Asset.Value)),"-",Sum(Fields!Asset.Value)), IIF(ISNOTHING(Sum(Fields!Asset.Value)),"-",Sum(Fields!Asset.Value)))


lcerni





Viewing all articles
Browse latest Browse all 28687


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