Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

How to create a slicer based on another slicer?

How can I create a slicer that shows me the content of a table (name months) or another table (number week), depending on the selection of another filter. I want that the user can choose to see by months or by weeks. In case the user wants to see by months in the slicer only has to show the column mon_name of the table month, on the other hand if the user selects week it has to show week_num of the table Week.
To try to do this I have created an auxiliary table which can be selected between month or week and a measure that returns me which value is being chosen. But when I add this measure to the filters of one of the tables, the whole filter does not disappear but only does not show me the months that are not selected.
Thanks for your help!

userph_0-1717402835554.pnguserph_1-1717402840466.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous , there is one option using field parameters

 

Power BI- Create dynamic slicers using field parameters: https://youtu.be/H2ZxWaHAJZQ
https://medium.com/@amitchandak/power-bi-power-bi-create-dynamic-slicers-using-field-parameters-202587d4dedb

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
v-yilong-msft
Community Support
Community Support

Syndicated - Outbound

Hi @Anonymous ,

I think this example may help you. Firstly I create two tables.

vyilongmsft_0-1717479175670.png

vyilongmsft_1-1717479190373.png

Next I create a measure.

 

Project Selected = IF ( SELECTEDVALUE ( 'T2'[Project Status] ) = "Completed", 1,0 )

 

Then put the measure into the visual level filter.

vyilongmsft_2-1717479329481.png

Finally you will get what you want.

vyilongmsft_3-1717479376132.png

vyilongmsft_4-1717479398153.png

vyilongmsft_5-1717479437478.png

 

 

 

 

Best Regards

Yilong Zhou

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

avatar user
Anonymous
Not applicable

It wasn't exacly this but thanks for the answer!

amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous , there is one option using field parameters

 

Power BI- Create dynamic slicers using field parameters: https://youtu.be/H2ZxWaHAJZQ
https://medium.com/@amitchandak/power-bi-power-bi-create-dynamic-slicers-using-field-parameters-202587d4dedb

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user
Anonymous
Not applicable

Thanks for the solution!

 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)