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
rodri2196
Frequent Visitor

Changing font colour of my measure based on matrix Hierarchy

Hi All,

I am using a matrix visual in which I have populated different columns and measures to display data.
The problem I am struggling is, For each level of my matrix hierarchy, I want to display a different FONT COLOR.  Can this be achieved by Conditional Formatting?

 

At this level It calculates properly.

rodri2196_0-1714609106599.png

 

When drilling down to deeper levels in the hierarchy, I want to maintain the visibility of subtotal values while hiding the detailed data, such as values for Weekly Print Cost and Weekly Pay.

rodri2196_1-1714609382120.png

 

Is there a way that this can be achieved? I thought of formatting by Text colour to match the background colour but that did not seem to work on a hierarchy.

Any sort of help on this problem will be appreciated.

Thanks 🙂

 




1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @rodri2196 
Unfortunately, we don't have the desired functionality you can suggest an idea here :

https://ideas.fabric.microsoft.com/ideas/search-ideas/?q=different%20colors%20matrix&page=1

There is some workaround for measures using isinscope function, check if this can help.

There is an example in the linked discussion :

https://community.fabric.microsoft.com/t5/Desktop/Use-different-colors-for-different-row-levels-in-a...

(the response of @v-frfei-msft)

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @rodri2196 
Unfortunately, we don't have the desired functionality you can suggest an idea here :

https://ideas.fabric.microsoft.com/ideas/search-ideas/?q=different%20colors%20matrix&page=1

There is some workaround for measures using isinscope function, check if this can help.

There is an example in the linked discussion :

https://community.fabric.microsoft.com/t5/Desktop/Use-different-colors-for-different-row-levels-in-a...

(the response of @v-frfei-msft)

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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
Top Kudoed Authors