Forum Discussion
froxas
6 years agoHelper II
check if value contains in another table
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 cl...
- 6 years ago
Add a custom column with:
= List.Contains(InvoiceTable[client_id], [client_id])Where InvoiceTable is the query name of your invoice table.
mdutot
4 years agoFrequent Visitor
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"
- Pablinho4 years agoHelper I
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!