March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have "clien's" table with client_id, and i have another table "invoices" where each invoice has client_id.
with power query I need to add in "client's" table column yes/no to check if every client are in "invoice" table.
wih the excel it would be simple lookup. how i can do it.
i tried with Table.Contains but did not suceeded.
Solved! Go to Solution.
Add a custom column with:
= List.Contains(InvoiceTable[client_id], [client_id])
Where InvoiceTable is the query name of your invoice table.
For quick fixes, I merge queries on a common column and then write a custom column that replaces "null" with "no" and everything else with "Yes"
Merge "Clients" query and "Invoices" queries on Client-ID.
Expand any Client-ID column
CustomColumn = if [#"Client-ID"] is null then "No" else "Yes"
This is the actual solution! Thank you so much! This is my first time doing the expand but it worked as a charm! Thank you!
Did you try merge query
Add a custom column with:
= List.Contains(InvoiceTable[client_id], [client_id])
Where InvoiceTable is the query name of your invoice table.
I implemented this between two tables with fewer than 30K rows each and got a pretty substantial performance hit when going to apply changes, FWIW.
Agreed, I tried this with ~150k rows, and it's unusable. Very good for small datasets though
HowardLJ - did you find a workaround for large datasets?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
16 | |
13 | |
12 | |
9 |
User | Count |
---|---|
34 | |
31 | |
20 | |
19 | |
17 |