Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
thinkpad
Regular Visitor

Need to change the color of the value by using DAX

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.

2 ACCEPTED SOLUTIONS
DataNinja777
Super User
Super User

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. 

DataNinja777_0-1716210294449.png

I attach an example pbix file.  

Best regards,

View solution in original post

Anonymous
Not applicable

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.

vyilongmsft_1-1716260336400.png

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.

vyilongmsft_2-1716260743401.png

vyilongmsft_3-1716260791956.png

Finally you will get what you want.

vyilongmsft_4-1716260951131.png

 

 

 

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.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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.

vyilongmsft_1-1716260336400.png

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.

vyilongmsft_2-1716260743401.png

vyilongmsft_3-1716260791956.png

Finally you will get what you want.

vyilongmsft_4-1716260951131.png

 

 

 

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

DataNinja777
Super User
Super User

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. 

DataNinja777_0-1716210294449.png

I attach an example pbix file.  

Best regards,

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.