Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Experts,
I have a following scenario i.e the values which are greater than 200 should display the red color, by using DAX need to get that one. Could any one please help.
Thanks in advance.
Solved! Go to Solution.
Hi @thinkpad ,
You can use the dax formula like below to produce your required output. Please use this in your conditional formatting of the measure.
I attach an example pbix file.
Best regards,
Hi @thinkpad ,
Your solution is great, @DataNinja777 . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.
I create a table.
Then I create a measure and here is the DAX code.
Measure = IF(MAX('Table'[Total])>200,"Red","Black")
Next I put it into conditional formatting.
Finally you will get what you want.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @thinkpad ,
Your solution is great, @DataNinja777 . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.
I create a table.
Then I create a measure and here is the DAX code.
Measure = IF(MAX('Table'[Total])>200,"Red","Black")
Next I put it into conditional formatting.
Finally you will get what you want.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks
Hi @thinkpad ,
You can use the dax formula like below to produce your required output. Please use this in your conditional formatting of the measure.
I attach an example pbix file.
Best regards,
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |