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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Miss_A
Regular Visitor

Check Missing ID

I have the client ID are multiple source such as 9995-0001,9995-0002,9996-0001, 9996-0002, 9997-0001, 9997-0002. So, I want to check missing ID in which location. How to?

2 ACCEPTED SOLUTIONS
v-stephen-msft
Community Support
Community Support

Hi @Miss_A ,

 

You can use your existing table in Power Query to create a combined table and then merge them. After the merge, the null in the expansion is the Missing ID and the corresponding location.

Here's an example.

Table (1) is the main table.

vstephenmsft_1-1695970942952.png

1.Copy the primary table, and then remove the columns and remove the duplicate rows to get the unique location column.

vstephenmsft_2-1695971028792.png

2.The same operation yields Table (3).

vstephenmsft_3-1695971175786.png

 

3.Add a custom column in Table (2) to reference the Table (3).

vstephenmsft_4-1695971214275.png

 

4.Expand it and then merge with the main table.

vstephenmsft_5-1695971263219.pngvstephenmsft_6-1695971271860.png

vstephenmsft_7-1695971280776.png

 

5.This is the final result.

vstephenmsft_8-1695971357692.png

 

Best Regards,

Stephen Tao

 

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

View solution in original post

Miss_A
Regular Visitor

2 REPLIES 2
Miss_A
Regular Visitor

Thank you.

v-stephen-msft
Community Support
Community Support

Hi @Miss_A ,

 

You can use your existing table in Power Query to create a combined table and then merge them. After the merge, the null in the expansion is the Missing ID and the corresponding location.

Here's an example.

Table (1) is the main table.

vstephenmsft_1-1695970942952.png

1.Copy the primary table, and then remove the columns and remove the duplicate rows to get the unique location column.

vstephenmsft_2-1695971028792.png

2.The same operation yields Table (3).

vstephenmsft_3-1695971175786.png

 

3.Add a custom column in Table (2) to reference the Table (3).

vstephenmsft_4-1695971214275.png

 

4.Expand it and then merge with the main table.

vstephenmsft_5-1695971263219.pngvstephenmsft_6-1695971271860.png

vstephenmsft_7-1695971280776.png

 

5.This is the final result.

vstephenmsft_8-1695971357692.png

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors
Top Kudoed Authors