The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi, I have 2 tables:
Table 2 able to link to Table 1 using 'Table1ID'.
I want to have 2 results... UnMatch and Match as below
Adding logics:
The match are only for State='DOWN'. For other than State='DOWN', can be ignored.
For any State = 'DOWN' in Table 1, it should have a follow up record in Table 2.
In Table2, each new record referenced to Table1 using 'Table1ID' column.
Solved! Go to Solution.
Hi @hemasnaidu
You can use Merge queries feature. For match results, select Inner Join kind. For unmatched results, select Left Anti kind. Then select rows with State 'DOWN'. Use Merge Queries as New to have match and unmatch results in new queries separately. You can see an example in the attached pbix file.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
what is the logic for your unmatch? What happened to 11111 and 44444 ? Should the State="UP" be ignored?
Added this logics to original post
Adding logics:
The match are only for State='DOWN'. For other than State='DOWN', can be ignored.
For any State = 'DOWN' in Table 1, it should have a follow up record in Table 2.
In Table2, each new record referenced to Table1 using 'Table1ID' column.
Hi @hemasnaidu
You can use Merge queries feature. For match results, select Inner Join kind. For unmatched results, select Left Anti kind. Then select rows with State 'DOWN'. Use Merge Queries as New to have match and unmatch results in new queries separately. You can see an example in the attached pbix file.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!