Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Community,
I'm new to DAX and struggling to do a 'vlookup' to find matching values in tables that are not related.
I'm working with 2 databases:
Unfortunately the Successor database is quite messy, with records where Employee ID (Holder) = Employee ID (Successor), which is redundant data. I have added a column "Is Real?" with Yes/No to differentiate the real successor records.
Required solution:
To find out if an employee is also a successor, I want to add a "Is Successor" column in the Master database.
It needs to match the value of Employee ID + Month in the Master Database, to Employee ID (Successor) + Month (only looking at records where Is Real Successor = Yes) in Successor database.
Where it finds a match, to return "Yes", else "No":
I've tried using Lookupvalue, but it didn't work because the relationship is between Master Database [Employee ID] and Successor Database [Employee ID (Holder)].
Using Query/Merge would be a more elegant solution, unfortunately it slows down the PBI desktop file considerably due to the huge Master database size.
Attached is the PBI file for reference.
Many thanks in advance for your insights and guidance!
Best regards,
Kim
Solved! Go to Solution.
look at this article, it has examples for a measure that would use TREATAS/INTERSECT
https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/
EDIT actually added the link to the article
Proud to be a Datanaut!
look at this article, it has examples for a measure that would use TREATAS/INTERSECT
https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/
EDIT actually added the link to the article
Proud to be a Datanaut!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
42 | |
33 | |
30 | |
18 | |
18 |