我有Column Type和Group MonthNum。如何更改背景颜色或每行? 试图使用SWITCH功能但由于某种原因它不会做任何事情:
=SWITCH
(
Fields!Type.Value = "Submitted - New Business" , "LightGrey",
Fields!Type.Value = "Submitted - Renewals" , "LightGrey",
Fields!Type.Value = "Submitted - ALL" , "Silver",
Fields!Type.Value = "Quoted - New Business" , "LightBlue",
Fields!Type.Value = "Quoted - Renewals" , "LightBlue",
Fields!Type.Value = "Quoted - ALL" , "LightSteelBlue",
Fields!Type.Value = "Bound - New Business" , "LightGrey",
Fields!Type.Value = "Bound - Renewals" , "LightGrey",
Fields!Type.Value = "Bound - ALL" , "Silver",
Fields!Type.Value = "Declined - New Business" , "LightBlue",
Fields!Type.Value = "Declined - Renewals" , "LightBlue",
Fields!Type.Value = "Declined - ALL" , "LightSteelBlue",
"Transparent"
)
答案 0 :(得分:1)
试试这个:
=SWITCH
(
Fields!Type.Value = "Submitted - New Business" , "LightGrey",
Fields!Type.Value = "Submitted - Renewals" , "LightGrey",
Fields!Type.Value = "Submitted - ALL" , "Silver",
Fields!Type.Value = "Quoted - New Business" , "LightBlue",
Fields!Type.Value = "Quoted - Renewals" , "LightBlue",
Fields!Type.Value = "Quoted - ALL" , "LightSteelBlue",
Fields!Type.Value = "Bound - New Business" , "LightGrey",
Fields!Type.Value = "Bound - Renewals" , "LightGrey",
Fields!Type.Value = "Bound - ALL" , "Silver",
Fields!Type.Value = "Declined - New Business" , "LightBlue",
Fields!Type.Value = "Declined - Renewals" , "LightBlue",
Fields!Type.Value = "Declined - ALL" , "LightSteelBlue",
true, "Transparent"
)
或改变"透明" to" white",对某些输出格式效果更好。此外,请确保字段值不具有奇怪的空格或字符,例如"引用 - 所有" (" ALL"之后的空格)。这会破坏等效性测试。