Reputation: 81
I have one pie chart that has 4 types. I want to hide the display of the particular group if the total aggregate is 0. . Based on my chart, Could anyone please help me how to change the filter condition not to show paid group if it has 0. TIA
Upvotes: 0
Views: 2569
Reputation: 1480
Agree with Renu's approach (as in comments), just to elaborate, in order to suppress zero values (in data cells) use the IIF() function to return appropriate, i.e. right click the Data-Cell -> select Expression and enter something similar to the following expression::
=IIF( Sum(Fields!columName.Value)=0, Nothing, Count(Fields!columName.Value) )
In case where you need to return a Boolean value (True/False), then use something similar to below:
=IIF(Count(Fields!columName.Value)=0, False, True)
Upvotes: 0
Reputation: 10860
You can filter by TOTAL in the Category Group properties of the chart.
This is the only place in a chart where you can filter by an aggregate (SUM or COUNT).
Upvotes: 1