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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Slicer that includes several filters

Hi,

 

I have  a simple database with two columns:

Items        Category

Item 1        A

Item 2        B     

Item 3        C

 

I want to filter the rows using a slicer, so when i filter by "A", item 1 shows. When i filter by "B" item 1 and 2 shows, and when I filter by "C" item 1, item 2 and item 3 shows. In other words, I want to include additional filters when I filter by "Categories", depending on the category chosen.

 

Does anyone know how to do this? Let me know if you need a better explanation 🙂

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

I create a measure and a index column to implement you can have a try.

 

  1. Create an index column from 1 in Power Query. Then apply and close.

1.jpg

  1. Create a new table contained the values you want to filter. And there is no relationship between the two tables.

2.png2.1.jpg

  1. Create a measure.
Filter =
var selc = SELECTEDVALUE(Table2[Category])
var selind =CALCULATE(MAX(Table1[Index]),FILTER(ALL(Table1),Table1[Category] = selc))
return
IF(MAX(Table1[Index])<=selind, MAX(Table1[Items]),BLANK())

3.1.jpg3.png

Best Regards,

Xue Ding

 

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

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

View solution in original post

1 REPLY 1
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

I create a measure and a index column to implement you can have a try.

 

  1. Create an index column from 1 in Power Query. Then apply and close.

1.jpg

  1. Create a new table contained the values you want to filter. And there is no relationship between the two tables.

2.png2.1.jpg

  1. Create a measure.
Filter =
var selc = SELECTEDVALUE(Table2[Category])
var selind =CALCULATE(MAX(Table1[Index]),FILTER(ALL(Table1),Table1[Category] = selc))
return
IF(MAX(Table1[Index])<=selind, MAX(Table1[Items]),BLANK())

3.1.jpg3.png

Best Regards,

Xue Ding

 

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

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors