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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors