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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Ohboy_991
Frequent Visitor

Slicer dropdown to filter area data and hide rows in Matrix

Hello to all,

 

When using a slicer dropdown to filter data, let's consider a scenario where there are 5 Multi Areas (A, B, C, D, and E), each having 4 districts, resulting in a total of 20 districts in rows. If we filter for Multi Area A, the Matrix will display the values of the 4 districts belonging to Multi Area A, while the remaining districts will appear as blank cells.

 

However, hide the 14 remaining districs from the rows, but only display the 4 districts related to the selected Multi Area (A in this case). 

Visulazation type = Matrix 

Ohboy_991_0-1705417310260.png

 

I will have a Area slicer on the above of this below view and whenever i select any area it should give me distrcits related to the selected Area and rest all distrcts should be hidden.

 

Ohboy_991_2-1705417363265.png

 

 

Thanks a lot for the help.

 

1 ACCEPTED SOLUTION

I created a workaround using this DAX and it solved my problem

CF = IF(HASONEVALUE(Tab1[Dist]), BLANK(), 'Tab3'[M1])
 
THANKS @Anonymous  @punitkhatri  for the support.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi  @Ohboy_991 ,

 

You could try turning off "Show items with no data".

vyangliumsft_0-1705657184405.png

What formula do you use for your measure?

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I created a workaround using this DAX and it solved my problem

CF = IF(HASONEVALUE(Tab1[Dist]), BLANK(), 'Tab3'[M1])
 
THANKS @Anonymous  @punitkhatri  for the support.
punitkhatri
Helper III
Helper III

Hii @Ohboy_991 , I think a simple slicer should work in your scenario. If not can you please provide a pbix file without any confidential data.

Thankyou.

Ohboy_991
Frequent Visitor

Thank you @Anonymous , but it did not worked for me,  i still get all the rows with/without the values in the matrix

 

view is like this if I filter Area = A

Ohboy_991_3-1705474030225.png

wanted to add that M1- M4 are calculated measures  

 

VIEW I need.

Ohboy_991_4-1705474085583.png

 

 

Anonymous
Not applicable

Hi  @Ohboy_991 ,

 

You can try it by following these steps

1. Format – Row headers – Options – Stepped layout set off.

vyangliumsft_0-1705460202075.png

vyangliumsft_1-1705460202076.png

2. Column subtotal and Row subtotals – set off.

vyangliumsft_2-1705460216864.png

3. Place the fields into the matrix as follows.

[Area] and [District] --  Rows

[M1],[M2],[M3]and[M4] -- Value

vyangliumsft_3-1705460216865.png

4. Result.

vyangliumsft_4-1705460233795.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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