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

Conditional Formatting (Bug?)

Goodmorning,
this is the visual behavior of conditional formatted matrix according to measure value

marcoproserpio_0-1708939740215.png


The latter doesnt happen using continous axis 

marcoproserpio_1-1708940001599.png



BR

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , I Hope you are having the year in the above matrix visual's column field.  In conditional formatting, we use some function(Min/Max) on categorical value, because of which it can take future or past value if the year is not present and available in the table

 

The measure used can also be the reason, but need to check

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

Of course it's included the year, it's embedded Date Hierarchy
It's not a measure problem as you can see, the correct value is displayed --> it's the conditional formatting

marcoproserpio_1-1709037788556.png

 

marcoproserpio_2-1709037849040.png

 

 


Measue is the following 

 

 

ColourTest = 
var x=max('Pianificato Elaborato (timestamp)'[CalendarioFermi.tota_tur])
RETURN
SWITCH(TRUE(), ISBLANK(x)=true,BLANK(), x=0, "Red", x>0, "Green", blank ())

 

 


Thanks



Anonymous
Not applicable

Hi @Anonymous ,

How did you set your matrix visual? Does the field [CalendarioFermi.tota_tur] also be included in the matrix visual?  In order to get a better understanding on your problem and give you a suitable solution, could you please provide some sample data in the table 'Pianificato Elaborato (timestamp)' and expected result with special examples and backend logic? It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And 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

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