My report looks as below:
And my SSRS form of the report is as below:
I want only one line of total and don't want the total percentage line to show up.For this, I would like to add a case/switch statement in the expression:
If Column_grouping contains "percent" then show "%value"
If column_grouping does not contain "percent" then show "total"
And my SSRS expression is as below:
=Switch
(Fields!Column_Grouping.Value like "*percent*", Fields!Total_value_Count_pct.Value,
Fields!Column_Grouping.Value not like "%percent%",Sum(Fields!Total_value_Count.Value))
Evidently this expression is wrong. Any help to fix this?!
%
and the other*
, is that intended? Also, one return value and the other is an aggregate; does that match the grouping in your report? It seems odd that you would aggregate one column and not the other. Also, you've tagged SSRS 2008 and 2012? Which you really using? There's a big difference between the two.# – Larnu*
should be used for LIKE in SSRS. – Hannover Fist