Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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,
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |