简体   繁体   中英

Color switch due to value of output SSRS

Okay im trying to show the value of the clients report and indicate if the value is bad or good with color. But instead of showing the value in color it shows the name of the color like Green instead of 33%

=SWITCH(SUM(Fields!AnserValue.Value, "qWHR") <= 33, "Green", 
SUM(Fields!AnserValue.Value, "qWHR") <= 66, "Orange",
SUM(Fields!AnserValue.Value, "qWHR") >= 65, "Red")

It looks like you are setting the value of the text box and not the background colour property?

Your switch expression doesn't look like it has any problems, just make sure you are setting the appropriate property of your text box and not just the text held within it.

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