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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.