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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Question about slicers

Hi,

I have two table named Gender and Subclass, the gender class has two observations namely "Male" and "Female". The Subclass table has 4 observations called "women's casual", "women's jeans", "men's casual" and "men's jeans". 

I have made two slicers on my dashboard using the gender table and subclass table, I want the user to be able to select the gender from the gender slicer and the second slicer for subclass should only show the 2 values relevant for that gender, for example if the user selects "female" from the gender slicer the subclass slicer should only show "women's casual" and "women's jeans". Any suggestions would be highly appreciated. 

Thanks.

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Ok. Create a measure to use as a filter in the filter pane for each slicer with:

 

Filter slicers =
COUNTROWS ( RELATEDTABLE ( 'Sales' ) )

 

Add the measure to the filter pane for each slicer and set the value to greater or equal to 1





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

4 REPLIES 4
PaulDBrown
Community Champion
Community Champion

Ok. Create a measure to use as a filter in the filter pane for each slicer with:

 

Filter slicers =
COUNTROWS ( RELATEDTABLE ( 'Sales' ) )

 

Add the measure to the filter pane for each slicer and set the value to greater or equal to 1





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hey, thank you so much, that worked.

PaulDBrown
Community Champion
Community Champion

How is the model set up?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

@PaulDBrown I have a main sales table with thousands of observations, and I have made two tables from this main sales table using the DISTINCT command for gender and the subclass table. 

shou_0-1671058069218.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.