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

Count of Varchar values in SSRS

$
0
0

Hey, currently my report looks like this:

Id    State
1     Renew
2     Upgrade
3     Deleted
4     Renew
5     Deleted

What I want is, I want to add a textbox or a tablix below this report which will tell me the total of the states. Something like this:

Total Renews = 2

Total Upgrades = 1

Total Deleted = 2

I tried doing this in a new column ina new tablix having the same dataset as the main report:

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

It doesn't seem to work, probably coz its a varchar field.

Any ideas?



Viewing all articles
Browse latest Browse all 10045

Trending Articles