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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Using sublevel matrix row as a filter

Hi,

 

I have quite a specific question for which I can't seem to find an answer, if there is. In my report I use a matrix as a central visual, with several visuals around it that filter along with the matrix. What I would like to achieve is that I can use the sublevel categories (on the rows) as a filter, neglecting the top level it belongs to. So if the matrix looks as follows, I would like to let my user click on the upmost 'Direct' row, so the visuals around it filter on Direct (regardless of the other sublevels). 

 

It is quite specific and can be done by holding CTRL and selecting both the 'Direct' rows, but this is a bit less intuitive. 

 

Debit

Active

Direct

Indirect

Passive

Credit

Active

Direct

Indirect

Passive

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous, unfortunately, there is no direct way, but you can write measures that ignore top-level categories and just filter on 3rd level category (in this case Direct)

 

For example:

 

Measure = CALCULATE ( SUM ( Table[Amount] ), REMOVEFILTERS ( Table[Level1], Table[Level2] ) )

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

5 REPLIES 5
parry2k
Super User
Super User

@Anonymous, unfortunately, there is no direct way, but you can write measures that ignore top-level categories and just filter on 3rd level category (in this case Direct)

 

For example:

 

Measure = CALCULATE ( SUM ( Table[Amount] ), REMOVEFILTERS ( Table[Level1], Table[Level2] ) )

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thanks! Unfortunate that I need even more measures, but this is exactly what I need!

parry2k
Super User
Super User

@Anonymous If I understood your question correctly if you click on Direct, you want to ignore top-level categories (Debit/Active and Credit/Active) and show the value of Direct in all other visuals on the same page. I guess currently when you click on Direct under Debit/Active, it filters other visuals for Debit/Active/Direct. Is this correct understanding?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi, yes this is exactly correct.

 

In another visual, I have split everthing out between Debit and Credit and I want to show the amounts linked to Direct (regardless of top level categories) next to eachother. Now, one of the columns is empty because you filter for Debit/Active/Direct. 

amitchandak
Super User
Super User

@Anonymous , You can ignore filter in drill through (drill on different page) , but you can not do the same drill/filter across on the same page

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.