This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I am trying to run a query where the I can see all the orders from table 1 that exist in table 2 where the order status does not match. Please see example of tables
Table 1
| Order No | Order Status |
| 1234 | Resolved |
| 1235 | Pending |
| 1236 | Open |
| 1237 | Resolved |
Table 2
| Order No | Order Status |
| 1234 | Open |
| 1235 | Resolved |
| 1236 | Pending |
| 1237 | Resolved |
@PowerBI please can someone help? I have tried doing a merge ant left query but this gives me only the records in the first table that do not exisit in the second table.
Solved! Go to Solution.
Hi @Anonymous ,
Select the Order No column of the two tables to merge.
Then select the required field and expand it.
Finally add a conditional column
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Select the Order No column of the two tables to merge.
Then select the required field and expand it.
Finally add a conditional column
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks - also do I need to use order no and order status as both the keys to join?
No, use only order no as key to join the two tables.
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thanks. how do I see the different order status values from both tables? Do I need to expand th query to show status prefixed ?
And I need to count of all the mismatch records so would this be the correct way Total Mismatch Orders:=COUNTROWS(table1)
Table1 ( left outer join ) Table2
instead of anti-join.
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 6 | |
| 4 | |
| 4 |