简体   繁体   中英

How to get a single value in a textbox from a row group in SSRS

I have the following table row group:

Name|Percent| val1|67% | val2|33% |

I want to know if is possible to get the percent of the val1 in a textbox? Thanks for the help.

Since your percentage is calculated with the rowcount of val1 to the total rows you can use the expression below:

= SUM(Iif(Fields!Name.Value = "val1",1,0))/COUNTROWS("AllReport")

The sum actually counts the rows with value equal to "val1"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM