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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PBI-Curious
Resolver I
Resolver I

Need to modify dax measure to show red if the number is negative.

Power BI Community Good Day!

I am using the following measure in my dashboard as a label.

The number is negative. How can I modify the dax measure below to show red if the number is negative? 

 

Amount Lost = CALCULATE(SUM(metricsrevenuecustomer[amount]),metricsrevenuecustomer[revenue_type_lvl2] ="Lost")
 
Much appreciate your time.
 
Thank you
 
1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @PBI-Curious 

 

Conditionally formatted measures need to be written separately.

Color measure = IF([Amount Lost]<0,"Red")

This is the Card view.

vzhangti_0-1672906285738.pngvzhangti_1-1672906297941.png

This is the Table view.

vzhangti_2-1672906376803.pngvzhangti_3-1672906386600.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @PBI-Curious 

 

Conditionally formatted measures need to be written separately.

Color measure = IF([Amount Lost]<0,"Red")

This is the Card view.

vzhangti_0-1672906285738.pngvzhangti_1-1672906297941.png

This is the Table view.

vzhangti_2-1672906376803.pngvzhangti_3-1672906386600.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

vicky_
Super User
Super User

You can use conditional formatting on the visual - see this guide for how to do that: https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.