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
Youness99
Frequent Visitor

How to create this particular type of slicer on pbi?

I have a table with specialitem and item1 and item2, item3 and their prices, and I’m
I’m trying to do a slicer that when I select specialitem it will filter my graph by specialitem, if I don’t select the specialitem it have to show me on the graph all the other items except for specialitem, I’m asking if there is another way besides using a calculated column.

1 REPLY 1
Anonymous
Not applicable

In Power BI, on selection of the button events, you can navigate to and from between pages, bookmarks, and there are some other functionalities as well.

VishalJhaveri_0-1677059693234.png

As per your requirement, you need to understand the concept of Bookmarks.
Link to the concept of Bookmarks : 9.7 Bookmark Action in Power BI | Power BI Tutorial for Beginners | By Pavan Lalwani - YouTube

Your measure won't work. 
VAR Complete = CALCULATE([Nm Documents], FILTER(tabledoc, tabledoc[status] = "COMPLETED"))
VAR All1 = CALCULATE([Nm Documents], FILTER(tabledoc, tabledoc[status] <> "COMPLETED")) 
RETURN
IF(Switch(True(), SELECTEDVALUE(tabledoc[status]) = "COMPLETED", Complete, ALL1))

The red line seems wrong to me.
You need to create 2 visuals and implement the concepts of Bookmarks in Power BI and play with buttons and bookmarks simultaneously to achieve the same.

Thank you.
If my answer helps you, please mark it as solution.

 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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