Forum Discussion
Pir to switch or toggle between Type and Sub-type
- 6 years ago
DavidWaters100 you should use bookmarks to achieve this
https://www.youtube.com/watch?v=_Afcj8mT5_Q
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
"Type" and "Sub-type" are different dim fields, Slicer is just used to filter data, it could not switch between different dim field in a visual.
So as a workaround, you could unpivot "Type" and "Sub-type"column into one column, then use that column in a visual and use attribute column as a slicer to switch it.
https://radacad.com/pivot-and-unpivot-with-power-bi
Regards,
Lin
Thanks for your comments and replies. In the end I decided to duplicate my sheet and add a button to navigate to that duplicated sheet where "All" was pre-selected and the "Type" pie was showing. I added another button to return to the other sheet where user can choose a Type but not "All" - in this sheet the pie for "Sub-Type" is showing. Bit of a workaround but user just clicks on an "All" button or goes back to choose different Types, and the pie appears to switch like that.