Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am wondering how to see if there is a row in one query that matches 3 or 4 columns in a different query. For example, I have a job query and an invoice query. I want to know if someone created an invoice for every job. So if a job row has a match on 3 columns in a row of the invoice query it will count it, but otherwise it will not count it. It would also need to ignore duplicates if two rows matched the original row
A simple example of the two tables:
Solved! Go to Solution.
@Anonymous - I would do the following:
1. Create a new Calculated Column on each table, which concatenates the 3 columns that need to be joined.
2. Create a Relationship between the two tables on this column.
3. Create a Measure like:
First Invoice = MIN('Invoice Query'[Invoice Number])Hope this helps,
Nathan
@Anonymous ,
You may simply try CONTAINS to add a calculated column.
how woud you create the calculated column for each table? Please can you show me an example?
Thanks
@Anonymous - I would do the following:
1. Create a new Calculated Column on each table, which concatenates the 3 columns that need to be joined.
2. Create a Relationship between the two tables on this column.
3. Create a Measure like:
First Invoice = MIN('Invoice Query'[Invoice Number])Hope this helps,
Nathan
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |