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
jgdgsf2
Frequent Visitor

Conditional formatting based on two values

Hi,

I have a Matrix that shows the number of Leavers and how many of those completed an Exit Interview before leaving, with an Adoption measure to show the percentage of Leavers/Exit Interviewees - as below:

 

jgdgsf2_0-1674661646122.png

 

If it is above the 10% target they get a tick, if below they get a cross. 

Really simply - I want to add a conditional formatting rule whereby if the "Leavers" column and "Exit Interviewees" is 0, then they get a neutral icon, as it wouldn't be fair to give them a cross if there were no Leavers to conduct an Exit Interview. Otherwise, continue to follow the rules I've already set if the Adoption is above or below 10%.

Is this possible?

Thanks for any help and assistance.

2 REPLIES 2
amitchandak
Super User
Super User

@jgdgsf2 , You have to use a unichar  measure, where you choose a symbol based on the condition, and then a color measure to do font formatting using the field value option

 

example

/////Arrow
Arrow =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)


/////Arrow Color
Arrow color =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, "green",
_change = 0, "blue",
_change < 0, "red"
)

 

 

You have to get right unichar https://exceleratorbi.com.au/dax-unichar-function-power-bi/

 

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

Thanks for your response, but this seems like it'll only work for the "Adoption" measure - I need a rule that works when both "Leavers" and "Exit Interviewees" = 0, show a neutral icon. If not, continue following my conditional formatting rules based on "Adoption" being > or < 10%.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.