Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

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.

avatar user
Anonymous
Not applicable

Syndicated - Outbound

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

lece

edhans
Super User
Super User

Syndicated - Outbound

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
avatar user
Anonymous
Not applicable

Syndicated - Outbound

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 🙂

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)