Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello all!
Each of the fields in the 'Metrics' column has a respective range for acceptable and unacceptable values (which will be reflected in the adjacent column labeled 'Grand Totals')
I would like to apply conditional formatting to each cell in Grand Total based on the range respective to the specific 'Metric' in question.
For example: 5 'Assault' incidents may be considered high (that value in the 'Grand Total' column would be red). This same number of incidents may be considered a low figure for 'Detector Wandings' (that value would then be green).
Any help or feedback is greatly appreciated! 🙂
Solved! Go to Solution.
HI @Anonymous ,
Please take a look at following blogs to know more about switch functions:
DAX – Making the “Case” for SWITCH()
Optimizing IF and SWITCH expressions using variables
Please understand that these links are provided with no warranties or guarantees of content changes, and confers no rights.
Regards,
Xiaoxin Sheng
Hi @Anonymous ,
You can consider to write a measure with switch function to check current metric and return correspond color, then enable conditional formatting background color based on measure fields value.
Conditional formatting in tables
After these, you can enable conditional formatting on second field with 'rule' mode based on its value.
Regards,
Xiaoxin Sheng
@v-shex-msft wrote:Hi @Anonymous ,
You can consider to write a measure with switch function to check current metric and return correspond color, then enable conditional formatting background color based on measure fields value.
Conditional formatting in tables
After these, you can enable conditional formatting on second field with 'rule' mode based on its value.
Regards,
Xiaoxin Sheng
Thank you for your response 🙂 I am a total newbie (introduced to Power BI less than a month ago). Is there a tutorial available that you recommend explaining the execution of this Switch function?
HI @Anonymous ,
Please take a look at following blogs to know more about switch functions:
DAX – Making the “Case” for SWITCH()
Optimizing IF and SWITCH expressions using variables
Please understand that these links are provided with no warranties or guarantees of content changes, and confers no rights.
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.