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

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
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.