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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Custom Slicer (everything vs everything except 1)

Hello smart peope out there.

 

I am stuck with this problem and need some help. I try to use a simple example:
I want to enable the user to choose between two baskets.
One basket has all products and the other all except one. 

At first, I made a slicer on product and set bookmarks. The problem is, that when the user switches to another page, the bookmark does not transfer. Thus he/she would have to chose again the basket for which the values are shown.

 

Thus I want to create a real slicer with the options Basket 1/ Basket 2.

 

The data looks the following:

ProductBasket 1Basket 2
Ayesyes
Byesyes
Cyesyes
Dyesyes
Enoyes

 

Can you help me with this?

Kind regards

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

1.Create a new table. Make relationship between the two tables and select the filter direction to Both.

vkalyjmsft_0-1655288174374.png

vkalyjmsft_1-1655288195990.png

2.Put the Basket column in the slicer, it will filter the Product column from the original table.

vkalyjmsft_3-1655288316886.png

vkalyjmsft_0-1655881397650.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

1.Create a new table. Make relationship between the two tables and select the filter direction to Both.

vkalyjmsft_0-1655288174374.png

vkalyjmsft_1-1655288195990.png

2.Put the Basket column in the slicer, it will filter the Product column from the original table.

vkalyjmsft_3-1655288316886.png

vkalyjmsft_0-1655881397650.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

great! That's such an easy but effective solution! Thanks a lot for helping me out 🙂
Kind regards,

lece

edhans
Super User
Super User

If you want slicers on different pages to have the same selections, use the Sync Slicers feature. The bookmarks would then effectively work across pages. When you set your bookmarks, disable the "current page" setting. That way they can click a button on Page 4 to activate a bookmark. It will set the values of the slicer for Page 1, and the slicer on Page 4 would sync to that value.

edhans_0-1654785384979.png

 

 

Slicers in Power BI - Power BI | Microsoft Docs



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

thanks for your reply. 
I already tried this. The problem with it is - speaking in the basket context - 

 

if i show basket 2 on default, then click on the bookmark button on page 4 to show the other basket (basket 1) - page 4 and page 5 will show the chosen basket 1. So far so good. But, the same bookmark button on page 5 will not look activated. Thus the user will think, that basket 2 is still shown, while values for basket 1 are shown in fact.

 

Thus, to create a real slicer out of the data above would be better. I think -  but I am open for any suggestion 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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