Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my RDLC report i am trying to create a table where i want summarise the count Containing YES & NO in "Issued_to_Maintanance" column. For this i have created first column by entering YES & NO manually and for the next column i have entered this expression

=Sum(IIf(Fields!Issued_to_Maintanance.value Like "YES",1,0),"DataSet1")


How ever i am not getting the desired out put , it shows 1 to each row of my table instead of total number of yes & total number of no , kindly help me how to correct this

What I have tried:

<pre>=Sum(IIf(Fields!Issued_to_Maintanance.value Like "YES",1,0),"DataSet1")
Posted
Updated 2-Aug-20 21:13pm

1 solution

You need to add a 'Total' row at the bottom of your report design instead of a column.

Refer: Sum of Column Values in Reports Automatically Using Expression in .NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900