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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Tommyvhod
Helper II
Helper II

Group withouth duplicates

Hi all. I would like to create a list called WIP. I have 3 querys - all IDs, than another called warehouse and one shipped. I would like to remove the warehouse and the sipped parts ID from the "all ID" list to get the production parts.E.g:

 

IDs , 11,22,23,25,27,28,30,33,35  Warehouse: 28,27,25,   Shipped: 23,22,11  = WIP : 30,33,35  (a-b-c=d)

 

What would be the best method?

 

Thank you in advance

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Tommyvhod 

You can do that with EXCEPT( ) and UNION( ). Assuming ID, Warehouse and Shipped are tables:

1. All columns must have the same name, so rename, for example,  to ID[ID], Warehouse[ID] and Shipped[ID]

2. Create a new calculated table (one column with your list):

WIP =
EXCEPT (
    DISTINCT ( ID[ID] ),
    UNION ( DISTINCT ( Warehouse[ID] ), DISTINCT ( Shipped[ID] ) )
)

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @Tommyvhod 

You can do that with EXCEPT( ) and UNION( ). Assuming ID, Warehouse and Shipped are tables:

1. All columns must have the same name, so rename, for example,  to ID[ID], Warehouse[ID] and Shipped[ID]

2. Create a new calculated table (one column with your list):

WIP =
EXCEPT (
    DISTINCT ( ID[ID] ),
    UNION ( DISTINCT ( Warehouse[ID] ), DISTINCT ( Shipped[ID] ) )
)

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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