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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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