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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
IP_Kornel
Frequent Visitor

Conditional formatting going crazy in matrix table with calculation group data and format function

Hi,
I want to show margin values with % formatting ofcourse and to make it happen with calculated group the only solution (correct me if I'm wrong) is to use FORMAT(x, "Percent"). But when I use FORMAT my conditional formatting is falling apart.

 

My conditional formatting rules in table

IP_Kornel_0-1712908031773.png
IP_Kornel_2-1712908066214.png

Calculation group conditional formatting rule

IP_Kornel_3-1712908211123.png

So when I don't use FORMAT function on "MARŻA" (MARGIN) it looks good (putting aside value formatting)

IP_Kornel_4-1712908311462.png

But the moment I only wrap the value around FORMAT() function it looks like this

IP_Kornel_5-1712908443291.png


If I add FORMAT to calculation group formatting rule like this

IP_Kornel_6-1712909122456.png

For some reason it only fixes 0 values

IP_Kornel_7-1712909163013.png

Negative values are still shown in green.

 

Any idea how to solve it?

I have no problem if I put the data the "normal" way without calculation group but I need to keep the values as calculation group since I need to be able to dynamically filter out columns from the matrix.

2 REPLIES 2
Anonymous
Not applicable

Hi @IP_Kornel ,

From your description, it appears that the desired conditional formatting (specifically for values less than 0) is not being achieved after the application of the FORMAT() function. This could be due to the fact that the FORMAT() function converts the number into a Text type, which might be affecting the outcome.

To better assist you, could you kindly provide the following information? It would be helpful to find out the solution. Thank you.

It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

IP_Kornel
Frequent Visitor

Any ideas? 🙄

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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