Forum Discussion
Use Slicer to Return All Items
I am thinking in terms of category and subcategory
I would create a column
All_items = "All Items"
Have that as your page filter and then use your subcategory of the other 4 as your slicer. That was if the user doesnt select anything then it will default to All items
Seems like that will only work with the slicer set to multi-select. With single-select, it always has something selected. It works better for my needs to use single-select.
- TeigeGao7 years ago
Solution Sage
Hi Chris_Evans ,
According to your description, my understanding is that you want to create a slicer with all items and a "ALL" item. In this scenario, we can create a table with the data "item1", "item2", ..... "ALL" without relationship with any table, then create a measure to control the display of data, we can use the SELECTEDVALUE() function to get the data we select and use if .. else .. to judge the operation.
Best Regards,
Teige
- Chris_Evans7 years agoFrequent Visitor
Could you give an example of how i would use that? I'm already using the selectedvalue() function for dynamic titles. How would I combine that with an If/Else statement and where would the measure be attached to? Is it a page level filter or does it have to be on each visualization? Thanks.