The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Team,
I have these two tables:
Product | Code | Date | Position | ID | Common Column |
A | 1 | 6/3/2023 | 1 | 12 | A-1-6/3/2023-1-12 |
C | 3 | 6/4/2023 | 2 | 13 | C-3-6/4/2023-3-32 |
S | 2 | 6/5/2023 | r | 14 | S-2-6/5/2023-2-22 |
Q | 1 | 6/6/2023 | 1 | 15 | F-1-6/6/2023-1-12 |
D | 5 | 6/7/2023 | 2 | 16 | D-5-6/7/2023-5-52 |
Product | Code | Date | Position | ID | Common Column |
A | 1 | 6/3/2023 | 1 | 12 | A-1-6/3/2023-1-12 |
C | 3 | 6/4/2023 | 2 | 13 | C-3-6/4/2023-3-32 |
X | 2 | 6/5/2023 | r | 14 | X-2-6/5/2023-2-22 |
Q | 1 | 6/6/2023 | 1 | 15 | Q-1-6/6/2023-1-12 |
D | 5 | 6/7/2023 | 2 | 16 | D-5-6/7/2023-5-52 |
I want to find out the matching count by comparing the common columns, Could anyone help me with the above requirement, this is a mock data, but when i tried to create a relationship it comes as many to many, I am not sure how to move forward.
Thank you!
Solved! Go to Solution.
Hi @AV_04
If the columns are same in both tables, you can merge the tables based on the "Product" which seems to be unique in each table.
You can go to "Transform Data" -> Under Home select "Merge Queries" and select as below:
This produced me the desired output as below:
Hope this works for you!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @AV_04
If the columns are same in both tables, you can merge the tables based on the "Product" which seems to be unique in each table.
You can go to "Transform Data" -> Under Home select "Merge Queries" and select as below:
This produced me the desired output as below:
Hope this works for you!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Bharat,
Is it possible to do in DAX? The tables are updated and are of different structure now. But the common column remains the same. I just want the count of matching and non matching common column from both the tables. could you help me here?
thank you very much
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
76 | |
65 | |
52 | |
51 |
User | Count |
---|---|
127 | |
116 | |
78 | |
64 | |
63 |