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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.