Forum Discussion

NJ81858's avatar
NJ81858
Helper IV
3 years ago
Solved

Changing Conditional Formatting Based on Rules

Hello,   I have a report that shows the percentage of sales compared to customers talked to, and the current goal for this is 20%. In Q2, this goal is changing to 25%, and hence I need to change my...
  • ahmedoye's avatar
    3 years ago

    Which Date Field do you have on the report table? If you have anyone there you should try the approach below. If it works, kindly mark this as a solution to allow anyone who may have similar issues find it easily:

    1. Create a Measure as:
        IF(SELECTECTEDVALUE(DateTable[Quarter]) = "Q2" && [YourMeasure%] >= 0.25, 1,
        IF(SELECTECTEDVALUE(DateTable[Quarter]) = "Q2" && [YourMeasure%] >= 0.20,1,
        0))

    2. With the above Measure, create a Conditional Formatting using "Field Value" option. Set 1 to Green and 0 to Red