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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
hi All,
Supposing I have two tables:
table1:
Key | Status | StatusDate |
Ticket1 | To Do | 8/16/2022 |
Ticket1 | To Do | 9/8/2022 |
table2:
Key | Status | MinDate |
Ticket1 | To Do | 8/16/2022 |
I would like to add a calculated column in table1:
if the row in table1 exist in table2, returns "include", otherwise "exclude". like this
Key | Status | StatusDate | Check |
Ticket1 | To Do | 8/16/2022 | include |
Ticket1 | To Do | 9/8/2022 | exclude |
I have this question trying to solve another question posted by MikiMihaela27.
Solved! Go to Solution.
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 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! |
Hi @FreemanZ
Try with this solution
Best Regards,
Shreya Mukkawar
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Hi @FreemanZ ,
1. Create a calculated column.
Best Regards,
Shreya Mukkawar
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
thank you. @Anonymous , that is very enlightening, but the comparison needs to be done for all columns for a certain row.
Hi @FreemanZ ,
I think you can create a unique key column in both the tables based on concating the ticket and date column,
After that you can use lookup value function and get the second table unique to the first table unique key based on first table's unique key.
After this you can another calculated column with if condition on the new lookuped column saying if it is blank then exclude else include.
Regards,
Nikhil Chenna
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |