Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |