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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
karimm
Helper II
Helper II

Filtering a slicer using an external single checkbox slicer

Hi there

 

I have a slicer in my report showing dropdown list of releases from table dimRelease.

This table contains ReleaseName and ReleaseStatus (Active or Inactive).

The slicer is set to show ReleaseStatus as first level and ReleaseName as second.

 

We want to provide the user with a checkbox of "Show Inactive Releases".

By default it should be ticked, and the user can untick it to make the slicer hide the inactive ones.

It should look like this:

karimm_0-1751474233396.png

 

How can this be implemented?

I know I could do this with bookmarks , but I would like to avoid this approach.

Is there a way to use the checkbox capabilities of slicers for this "Show Inactive Releases"?

I tried using fields parameters but not sure how to capture the state of whether the checkbox is selected or not.

 

Appreciate your help

1 ACCEPTED SOLUTION

Hi @karimm

Modify @rajendraongole1's solution a bit. 

danextian_1-1751514640764.gif

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

7 REPLIES 7
v-tsaipranay
Community Support
Community Support

Hi @karimm ,

Thank you for reaching out to the Microsoft Fabric Community forum. Also thank you @burakkaragoz and @rajendraongole1 for providing possible solution.

 

I wanted to check if you had the opportunity to review the information provided by @danextian . Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

'
Thank you.

 

burakkaragoz
Community Champion
Community Champion

Hi @karimm ,

 

You can do this without bookmarks by using a disconnected table and a simple measure to filter your slicer dynamically.

Quick steps:

  1. Create a new table (manually):
ShowInactive = DATATABLE("Show Inactive", STRING, {{"Yes"}, {"No"}})
  1. Add this as a slicer (checkbox style).

  2. Create a measure to control visibility:

ShowInactiveFilter = 
IF(
    SELECTEDVALUE(ShowInactive[Show Inactive]) = "No",
    "Active",
    "Active" // or "Active" & "Inactive" depending on your logic
)
  1. Use this measure in a visual-level filter on your dimRelease[ReleaseStatus] slicer:
  • Set it to show only when ReleaseStatus equals the value from the measure.

This way, when the user unchecks "Show Inactive", the slicer will only show active releases.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

Translation and text editing supported by AI

Thank you for your reply. 

Regarding this step:

Add this as a slicer (checkbox style).

won't this cause the slicer to show 2 checkboxes( Yes and No)? I need only 1 checkbox 

rajendraongole1
Super User
Super User

Hi @karimm  -Please find the attached pbix file with slicer filtering 

 

rajendraongole1_0-1751477163283.png

 

if you choose yes, 

rajendraongole1_1-1751477186998.png

 

 

Hope this works. please check and let know.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi

Thank to for your reply. 

I know how to do this but this doesn't answer my requirement of having a single checkbox. Your solution has a big filter with Yes and No. I need a compact solution where the checkbox behaves like a toggle. 

 

Hi @karimm

Modify @rajendraongole1's solution a bit. 

danextian_1-1751514640764.gif

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thank you @danextian and @rajendraongole1 for your help.

I really appreciate your help.

With the last changes from danextian, it's working now! 

I'm trying to attach the final pbix file so others can use it if needed. But seems not to be possible for me.

 

So I'm listing here the changes that didn't show clearly in @danextian GIF :

  1. Updated this data table
    ShowInactiveOption = DATATABLE(
        "Show Inactive", STRING,
        {
            {"Show Inactive"},
            {"No"}
        }
    )
  2. Updated this measure:
    Release Filter =
    VAR ShowInactive = SELECTEDVALUE( ShowInactiveOption[Show Inactive], "No" )
    RETURN
      IF(
        ShowInactive = "Show Inactive",
        1,
        IF( SELECTEDVALUE(dimrel[ReleaseStatus]) = "Active", 1, 0 )
      )

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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