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 August 31st. Request your voucher.

Reply
Peka2359
Regular Visitor

Help with Formatting a Matrix with Multiple Hierarchical Levels in Power BI

Hello everyone,

I am working on a Power BI report that uses a matrix with 10 hierarchical levels to display my financial data. My goal is to create a P&L (Profit and Loss) presentation where data at lower levels aggregates correctly to higher levels.

However, I am facing a sorting issue: for example, I find the "Profit Before Tax" appearing at the top, while I would like to reorganize it so that it fits properly within the structure of my P&L (exemple here)

Here are a few specific points where I would appreciate your help:

  1. Custom Sorting: How can I define a specific sort order for my hierarchical levels so that they display in the desired order?

  2. Data Aggregation: Is there a method to ensure that values aggregate correctly at each hierarchical level?

  3. Matrix Formatting: What are the best practices for formatting a matrix with so many levels to ensure optimal readability?

Thank you in advance for your help and suggestions. Any advice or resources would be greatly appreciated!

Best regards,

 

Peka2359_0-1731491328981.png

 

2 REPLIES 2
Peka2359
Regular Visitor

Hello, thank you for responding.

I am currently working with hierarchical levels, but it can't work as expected because in my fact table, I only have the input level. I then relate this to a dimension table that has 10 levels of hierarchy (as shown in the attached photo).

Peka2359_1-1731518681605.png

 

In my matrix table, I included several levels (level 3, 5, 8, etc.) to display my profit before tax. However, I would like to reorganize it to create a Profit & Loss statement like this:

Peka2359_2-1731518707938.png

 

 

lbendlin
Super User
Super User

1. learn about "sorting a column by another column"

2. learn about ISINSCOPE and how to adjust your measure depending on where you are in the visual.  (Also cosider HASONEVALUE if applicable)

3. Add the +/- decorations to the rows (sadly not available yet for columns) and teach your users how to expand, collapse, and drill down or up in a matrix via the header icons or right click.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors