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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Melodyv
Helper I
Helper I

Measure to exclude slicer selection from results

Is there a way to have a visual show all results EXCEPT from the selection in a slicer? 

 

Below is what I have.  I need the visual to show all results EXCEPT the program selected in the slicer.  I can't just use edit interactions because I do want the visual to be filtered by the selected program in the slicer - I just don't want that program to appear again in the results.  So in the example below, I want all those programs to appear as they are (which is filtered) but do NOT want "CMCA_FOC" to appear in the visual.

 

Melodyv_1-1737560149792.png

 

The "Program" field in the slicer comes from a sheet titled "Module B Detail Report."  The data in the visual comes from a sheet titled "Module B Detail - Enrolled Programs."  

 

I have tried creating a measure in the sheet "Module 4B Detail - Enrolled Programs" following this post, but it does not seem to be working for me.  The "Duplicate for Filter" sheet is a copy of "Module B Detail Report."  Here is the measure I created:

 

Measure = IF(ISFILTERED('Duplicate for Filter'[Program]),IF(MAX('Module 4B Detail - Enrolled Programs'[Program]) in ALLSELECTED('Duplicate for Filter'[Program]),1,0))
 
Is the measure I'm using the correct measure?  Am I duplicating the wrong sheet?  I appreciate any help.
1 ACCEPTED SOLUTION
Bibiano_Geraldo
Super User
Super User

Hi, @Melodyv ,

Try to replicate this logic:

1- Create a disconected table with unique values of your program, something like this:

dim_Program = VALUES('Sales'[Program])

My generated table will look like this:

Bibiano_Geraldo_0-1737563498684.png

 

Now make sure that they are NOT related:

Bibiano_Geraldo_1-1737563539619.png

 

Now create a measure to ignore selected value by this DAX:

Sales Amount = 
IF(
    SELECTEDVALUE('dim_Program'[Program]) = SELECTEDVALUE('Sales'[Program]),
    BLANK(),
    SUM('Sales'[Sales Amount (Actual)])
)

 

Now add a slicer with program colum from previous created table 

Bibiano_Geraldo_2-1737563680441.png

 

Now add a char but here in y-axis place the program column from sales table

Bibiano_Geraldo_3-1737563750376.png

 

Your finaly result should look like this, notice that the selected value in slicer is ignored on the chart:

ezgif-7-2185ac4d26.gif

 

View solution in original post

3 REPLIES 3
Bibiano_Geraldo
Super User
Super User

Hi, @Melodyv ,

Try to replicate this logic:

1- Create a disconected table with unique values of your program, something like this:

dim_Program = VALUES('Sales'[Program])

My generated table will look like this:

Bibiano_Geraldo_0-1737563498684.png

 

Now make sure that they are NOT related:

Bibiano_Geraldo_1-1737563539619.png

 

Now create a measure to ignore selected value by this DAX:

Sales Amount = 
IF(
    SELECTEDVALUE('dim_Program'[Program]) = SELECTEDVALUE('Sales'[Program]),
    BLANK(),
    SUM('Sales'[Sales Amount (Actual)])
)

 

Now add a slicer with program colum from previous created table 

Bibiano_Geraldo_2-1737563680441.png

 

Now add a char but here in y-axis place the program column from sales table

Bibiano_Geraldo_3-1737563750376.png

 

Your finaly result should look like this, notice that the selected value in slicer is ignored on the chart:

ezgif-7-2185ac4d26.gif

 

Shivu-2000
Super User
Super User

Hi @Melodyv 

 

Please update the measure to 
ExcludeSelectedProgram =
IF(
NOT(SELECTEDVALUE('Duplicate for Filter'[Program]) = MAX('Module 4B Detail - Enrolled Programs'[Program])),
1,
0
)

 

and apply it on visual as a filer.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Happy to help!

Updating the measure appears to be hiding all results for that visual.  Am I missing a step?

 

Melodyv_0-1737562612504.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors