asp.net - Issue with Sum on a colum in Rdlc Report -


i have rdlc report.

supposing there 2 columns

   trval      status    10000        yes    20000        yes    30000        no  total= 30000 

currently using expression above:

=sum(iif(fields!lead_status.value = "yes", fields!trvalrange.value, 0)) 

assuming add trvalrange result each time yes. in case there no status=yes says 0. when there rows status=yes gives error .

also trvalrange string field need sort of conversion here sum? suggestions.

thank you

as thought needed convert string value int can summed changed expression :

=sum(iif(fields!lead_status.value = "satisfactory",cint(fields!trvalrange.value), 0)) 

and works perfectly.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -