I am working on SSRS report. I have a report where the user inserts the login, start date and end date. I want to count the number of rows of WarantyColumn that have the value 1 for the user injected between start date and end date.
Count(iif(Fields!TextField.Value=, Fields!TextField.Value, Nothing))
Create a new column, let's call it
warrantycolumncount
. For this column, set expression asThis expression will set 1 where your condition matches and 0 where condition does not match.
If you wish you can hide this column for you final report as well
Now at the bottom of your tablix you can create row Total
To add totals for a row group
You should just be able to use something like.
This will work inside a tablix that is bound to your dataset. If you need to do the same outside of the tablix then you have to provide scope, so something like.
**Note: ** oy must put the dataset name in quotes and it is case sensitive so it must match the name exactly.