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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
VishalJhaveri
Resolver III
Resolver III

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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