The issue you're experiencing in Power BI Report Builder with the SWITCH expression not applying the expected background color to certain values like "Blocked" is most likely due to hidden data inconsistencies, such as trailing or leading spaces, case mismatches, or even invisible characters in your dataset.
Although the text "Blocked" may appear correct visually, the actual value in the field could include extra spaces or different casing (e.g., "Blocked ", " blocked", or similar), which causes the SWITCH expression to fail at matching it. To resolve this, it's recommended to wrap the field in TRIM() to remove any extra spaces and UCASE() or LCASE() to normalize casing within your expression.
Additionally, always include a default case in your SWITCH statement to handle unmatched values gracefully. For example, using SWITCH(UCASE(TRIM(Fields!Status.Value)), "ON TRACK", "Green", "AT RISK", "Yellow", "BLOCKED", "Red", "Transparent") ensures consistent results.
You can also create a temporary output to display the exact string and its length to visually confirm any hidden characters. These measures should help ensure that your conditional formatting applies correctly across all intended values.