I have Column Type and Group MonthNum. How can I change a Background color or each row? Trying to use SWITCH function but for some reason it doesnt do enything:
=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"
)
Try this:
=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"
)
Or change "transparent" to "white", which works better with some output formats. Also, Make sure the field values don't have weird spaces or characters, like "Quoted - ALL " (space after "ALL"). That will mess up the equivalency test.
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.