How to change color of the font based on the thresh hold value

不打扰是莪最后的温柔 提交于 2019-12-23 13:15:40

问题


I have a requirement like if the the threshhold value is greater than 6% the text color should appear as red and between 5-6% it should change to yellow. I tried this expression in the text box font color property for the first requirement iif(fields!My_column.value>6, "red","Black") but did not work. I would appreciate any tips for both of my problems. Thanks


回答1:


No reason this shouldn't be working.

You can set the Color property for a Text Box and it should be fine.

=Switch(Fields!My_column.Value > 6, "Red"
    , Fields!My_column.Value < 5, "Black"
    , true , "Yellow")

Gives:

How does your underlying data look? Is 6% "6" or is it actually "0.06"?



来源:https://stackoverflow.com/questions/14900524/how-to-change-color-of-the-font-based-on-the-thresh-hold-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!