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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.