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
M_SBS_6
Helper V
Helper V

Measure add colours based on results

Hi, 

I have a simple measure test1 - test2.

 

What I want is my card to return the value in a colour based on the output.

 

If < 0 the hex #ed6955 else hex #87b826

 

Any idea how to incorporate this please? 

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

For your reference.

 

mickey64_0-1723119384269.png

 

mickey64_1-1723119421108.png

 

View solution in original post

2 REPLIES 2
aduguid
Super User
Super User

I'd create a measure for the conditional formatting 

CardColor = 
IF (
    [test1] - [test2] < 0,
    "#ed6955",
    "#87b826"
)
mickey64
Super User
Super User

For your reference.

 

mickey64_0-1723119384269.png

 

mickey64_1-1723119421108.png

 

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!

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.

Top Solution Authors