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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey, I have an icon measure and i need to change the colors depending on positive, negative or neutral.
Please, any hint as in the formatting pane there is no option.
Thank you,
Clara
Solved! Go to Solution.
Hi @Anonymous ,
I suggest you to try code as below to create a color measure.
Color =
SWITCH(
TRUE(),
[diff_airticket_YTD]>0,"Green",
[diff_airticket_YTD]<0,"Red",
"Yellow"
)
Try conditonal formatting in your visual and use Field value. Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I suggest you to try code as below to create a color measure.
Color =
SWITCH(
TRUE(),
[diff_airticket_YTD]>0,"Green",
[diff_airticket_YTD]<0,"Red",
"Yellow"
)
Try conditonal formatting in your visual and use Field value. Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Is the requirement to change the color of arrows or the color of card visual.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 21 | |
| 18 |