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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
josephliverpool
Frequent Visitor

New Card - Conditional Formatting the Detail Label Which Contains a Measure

Hi!

 

I have the following measure in the detail tab on the new card visual. This works fine and displays a black arrow showing up or down but how do I change the colour of the arrow to show as green when up or red when down? I've tried conditional formatting but absoutely no joy at all!

 

Problems Raised  =
VAR Up_Arrow = UNICHAR(129137)
VAR Down_Arrow = UNICHAR(129139)
VAR lastmonth = [Problems Closed in Previous Month]
VAR total = [Total Number of Problems Closed]


RETURN
IF(total > lastmonth,Up_Arrow,Down_Arrow)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @josephliverpool 

After testing, in card cannot set the icon color, you can consider to use the kpi visual.

put the [Total Number of Problems Closed] measure to the value, then put the [Problems Closed in Previous Month] to the target, in trend axis, you can put year or other field.

vxinruzhumsft_0-1724986865833.png

Then when filter the slicer, you can refet to the following picture.

vxinruzhumsft_1-1724986950791.png

 

Best Regards!

Yolo Zhu

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
Anonymous
Not applicable

Hi @josephliverpool 

After testing, in card cannot set the icon color, you can consider to use the kpi visual.

put the [Total Number of Problems Closed] measure to the value, then put the [Problems Closed in Previous Month] to the target, in trend axis, you can put year or other field.

vxinruzhumsft_0-1724986865833.png

Then when filter the slicer, you can refet to the following picture.

vxinruzhumsft_1-1724986950791.png

 

Best Regards!

Yolo Zhu

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

Ramya_Shree
Regular Visitor

To change the arrow color in your New Card visual

You can add HTML formatting to your measure to control the color directly

Problems Raised =
VAR Up_Arrow = "<span style='color:green'>" & UNICHAR(129137) & "</span>"
VAR Down_Arrow = "<span style='color:red'>" & UNICHAR(129139) & "</span>"
VAR lastmonth = [Problems Closed in Previous Month]
VAR total = [Total Number of Problems Closed]

RETURN
IF(total > lastmonth, Up_Arrow, Down_Arrow)

or  Alternatively, create two separate measures—one for color and one for the arrow—and then use conditional formatting based on the color measure in the New Card visual.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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