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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.