我目前有一个2008年的SSRS报告,我想根据一些逻辑有条件地格式化列的背景。
我有三列,其中两列我想改变背景颜色。 列“Current Risk Level”,“Trend”,“Tolerance”。每个都包含Low,Moderate,Medium,High,Very High等行。
对于“Current Risk Level”列,我想让Low =“绿色”,Moderate =“蓝色”,Medium =“黄色”,High =“橙色”,Very High =“红色”。
对于“Tolerance”列,我想让 Low =“红色”,Moderate =“橙色”,Medium =“黄色”,High =“蓝色”,Very High =“绿色”。
我不知道如何设置SWITCH或IIF函数来完成此操作。
任何帮助将不胜感激!
SWITCH ( IIF(Fields!Underwriter.Value="Brown, Debra" THEN Fields!PoliciesBound.Value = 0, "Tomato", Fields!PoliciesBound.Value >=1 and Fields!PoliciesBound.Value <= 5 , "Yellow", Fields!PoliciesBound.Value >=6 and Fields!PoliciesBound.Value <= 10 , "Gold", Fields!PoliciesBound.Value >= 11 and Fields!PoliciesBound.Value <= 16,"#bdff30", )
- Serdia