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! Request now

Reply
mlsx4
Memorable Member
Memorable Member

Show a table with all values except the selected in a slicer

Hello everyone,

 

I've got a slicer with all documents: Order 1, order 2, order 3...

Then I need two tables both showing Order ID and Manufacturing Cost

Firstly, Table A which works as usual: if I select Order 1, it will be filtered by Order 1. 

But then, I need a second Table B, which should work in an "inverse" way. I mean, if I select by Order 1, it must show all order except Order 1.

I've tried using a measure to keep the selected value and another one to filter Table B by it, disconnect the interaction...

OrderSelected = 
CALCULATE(
    SELECTEDVALUE('Order'[OrderID]),
    ALL('Order')        --Here I've tried ALLSELECTED ('Order') too
)

And then:

 

ShowOrder =
VAR Sel = [OrderSelected]
RETURN
    -- If there's no project → show all
    IF( ISBLANK(Sel), TRUE(),
        -- If there's a project selected→ show the others
        Order[OrderID] <> Sel
    )


However, up to now, I haven't been able to manage it. Any help would be aprecciated.

P.S. I have tried, in the second measure to return only Sel and if interaction is enabled it shows only Order 1 and if it is blocked it shows Blank()

6 REPLIES 6
grazitti_sapna
Super User
Super User

Hi @mlsx4,

You can achieve this by creating a disconnected order table with Order Ids. either in Power Query or using DAX

 

Order_Slicer = VALUES(Order[OrderID])

Use values from disconnected table in Slicer

Now use this in the measure you already created

SelectedOrder =
SELECTEDVALUE(Order_Slicer[OrderID])

ShowOrder_B =
VAR Sel = [SelectedOrder]
RETURN
IF (
ISBLANK(Sel),
TRUE(), -- nothing selected -> show all
Order[OrderID] <> Sel -- invert filtering
)

apply this measure in table B's visal level filter and set to true.

 

If you want to use it in multiple selection use below DAX

 

ShowOrder_B =
VAR Selected =
VALUES(Order_Slicer[OrderID]) -- returns a table
RETURN
IF (
ISBLANK(SELECTEDVALUE(Order_Slicer[OrderID])),
TRUE(),
NOT Order[OrderID] IN Selected
)

 

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

I've tried your measure in an easy example:

Order_Slicer is OK

mlsx4_0-1764317062229.png

But then, "Cannot find table 'Order_Slicer' error

mlsx4_1-1764317121466.png

And also in ShowOrder_B

mlsx4_2-1764317174413.png

 


Any idea?

Hi @mlsx4 ,

Your measure is referencing a table named Order_Slicer, but that table does not exist in your model.

 

In the screenshot on the right, I can see your real table names:

 

Ordenes

 

Importe

 

ResumenDiarioResumenDiario_02

 

(others…)

 

There is no table called Order_Slicer in the Fields pane.

 

Try below DAX.

1. Selected order measure

SelectedOrder =

SELECTEDVALUE(Ordenes[OrderID])

 

2. Show all except selected

ShowOtherOrders =

VAR sel = [SelectedOrder]

RETURN

    IF(

        ISBLANK(sel),

        TRUE(),

        Ordenes[OrderID] <> sel

    )

 

In the Filters pane for Table B:

 

drag ShowOtherOrders

 

set to Show items when value is TRUE

 

If my response as resolved your issue please mark it as solution and give kudos.

Hi @mlsx4,

In the screenshots you are using disconnected table as table 2, but you should use your original table. Only the slicer should be used from disconnected table, can you share the sample .pbix file. i can help to create the solution

Example.pbix 

Check if you can download it

No file there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors