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
sanjanarama
Resolver I
Resolver I

conditional formatting in matrix data

I have created measure to add conditional formatting for values in matrix

COLOR GLOBAL CUSTOMER ROW =
IF (HASONEVALUE( Sheet2[hirachy] )
,IF( FIRSTNONBLANK(Sheet2[hirachy] , 0) = "Global"
,"#C8F4FF"
,"white"
)
,BLANK()
)



if we expand the matrix the colour is moving away, any way to keep formatting always?


sanjanarama_0-1646636374151.png

sanjanarama_1-1646636473365.png

 

 

4 REPLIES 4
amitchandak
Super User
Super User

@sanjanarama , Just try this version

 

,IF( max(Sheet2[hirachy]) = "Global"
,"#C8F4FF"
,"white"
)

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

@amitchandak 
tried this, still the same

@sanjanarama ,
Can you share a sample pbix after removing sensitive data.

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

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.