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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Oded-Dror
Helper III
Helper III

Slicer value based on column selection

Hi there,

how to change slicer value based on selected column?
I have Geography Dim connected to a fact Sales 1:M and I created a slicer for that
Everythings works fine but the requirements changes, now I have 3 templates to choose from each template represent different
values in Dim table 
One option was to create a bookmark for each template filtering it to 1 (show)
But I'm wondering if there is a nother way without the bookmark?
Iv'e try to union all templates into one table but its create M:M relationship which I don't need.
Thanks,

Oded Dror

 Dynamic Slicer Value.png

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

@Oded-Dror  Unfortunately this will be a many to many relationship. You can keep your DimGeography table as is, and create a table that contains CountryID and Template and use a snowflake schema instead, so use the CountryID | Template new table related with BOTH cross filter direction to filter the DimGeography table that has a 1:many relationship SINGLE to sales and filters sales.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
AllisonKennedy
Super User
Super User

@Oded-Dror  Unfortunately this will be a many to many relationship. You can keep your DimGeography table as is, and create a table that contains CountryID and Template and use a snowflake schema instead, so use the CountryID | Template new table related with BOTH cross filter direction to filter the DimGeography table that has a 1:many relationship SINGLE to sales and filters sales.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Allison,
Thanks you for your response it call bridge table 
Thanks,

Oded Dror

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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