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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
wlandry12
Frequent Visitor

Checkbox to show closed jobs

I want to display a table on my report that shows only open jobs (Fabrication Complete = False) by default. I know I can do that by setting the page filter to 'Fabrication Complete is False'. But how could I create a slicer or visual with a single checkbox that when the viewer ticks it the closed jobs (Fabrication Complete = True) will show up in the table as well? 

 

I've tried publishing the report with False checked on the Fabrication Complete slicer and setting the slicer filter to True only (as shown below), but this still dispays the False option in the slicer and by clicking True only the closed jobs are then displayed in the tables.

wlandry12_0-1645489952696.png

wlandry12_1-1645490070876.png

Effectively, I want the report to show Fabrication Complete = False by default, then add all data where Fabrication Complete = True to the table visual by simply ticking the box. Ideally, the checkbox would say 'Show closed jobs' next to it.

 

1 ACCEPTED SOLUTION

Thanks for the reply @amitchandak. I actually found a user-friendly solution in creating buttons tied to bookmarks. I set each bookmark's filter, then I stacked the buttons and had the top button's bookmark hide the top button. Then the bottom button would show it again, effectively acting as a toggle.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@wlandry12 , Create a table with one row having value Fabrication Complete

 

Without joining it with table use this

 

if(isfiltered(Fab[Fab]), calculate(Table[Value], filter(Table, Table[Fabrication Complete]=true() )) , calculate(Table[Value], filter(Table, Table[Fabrication Complete] = false())) )

Thanks for the reply @amitchandak. I actually found a user-friendly solution in creating buttons tied to bookmarks. I set each bookmark's filter, then I stacked the buttons and had the top button's bookmark hide the top button. Then the bottom button would show it again, effectively acting as a toggle.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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