cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Miss_A
New Member

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
New Member

2 REPLIES 2
Miss_A
New Member

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors