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

сonditional formating for subtotals in matrix

Please tell me how to apply different background colors for the subtotal in a two-level header matrix. For example, level 1 - green, level 2 - yellow.

Aizhan_S_0-1734540228049.png

 

1 REPLY 1
Anonymous
Not applicable

HI, @Aizhan_S 

Thanks for reaching out to the Microsoft fabric community forum.

Could you share your PBIX file with us? This would help us understand whether your data structure supports our solution and allow us to test its effectiveness, especially how your illustrated matrix is constructed and whether it is a custom object.

 

Regarding your issue, you can try using measures and the ISINSCOPE() or HASONEVALUE() functions to determine if an item belongs to the current level and thus set the color display accordingly.

For more details, please refer to:

ISINSCOPE function (DAX) - DAX | Microsoft Learn
HASONEVALUE function (DAX) - DAX | Microsoft Learn
Hierarchies – DAX Patterns
 

Of course, as mentioned earlier, I am not certain if this solution will address your issue.We recommend uploading it to GitHub and sharing the link with us.When uploading a file, please be careful to delete sensitive information.

 

For questions about uploading data, you can try the following links:

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Solved: How to upload PBI in Community - Microsoft Fabric Community


Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

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