Forum Discussion
TheV500Oshin
4 years agoRegular Visitor
Filter out rows in a table using a button or toggle
Hello I need a way of a button/toggle to filter out rows based on a string. I have created a small table with the fields "Yes" or "No" and I need to filter a table depending on which button i...
- 4 years ago
TheV500Oshin Here is the sample file with the solution https://www.dropbox.com/t/zcapitgXbnBiz4nX
The report looks like this
This is the measure codeMeasure = VAR Selection = IF ( ISFILTERED ('Is CEO'[CEO?] ), CALCULATE ( VALUES ( Employees[Jobtitle] ), Employees[Jobtitle] = "CEO" ), CALCULATE ( VALUES ( Employees[Jobtitle] ), Employees[Jobtitle] <> "CEO" ) ) VAR Result = IF ( HASONEVALUE ( Employees[EMPID] ), Selection ) RETURN ResultPlease let me know if this answers your query or if you need any further modifications.
Samarth_18
4 years agoCommunity Champion
Hi TheV500Oshin ,
You can create a bookmark with filter then add a button and put bookmark as action for your button.
Thanks,
Samarth
TheV500Oshin
4 years agoRegular Visitor
Is there anyway of doing this without bookmarks?
- Samarth_184 years agoCommunity Champion
TheV500Oshin Create two pages one with filter and another with without filter and put button action as navigation to other page. Mark newly created page as hidden so user will not see in services.