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.
Hello to all the community,
I am trying to use DAX to return a result between two tables not directly connected between each other.
Table 1
Name | Job | Level |
Alan | Accountant | I |
Mark | Accountant | II |
John | Manager | III |
Job List
Job | I | II | III |
Accountant | B | C | D |
Manager | D | E | F |
By taking the parameters Job + Level, I would like to return the corresponding value for each name based on level
Table 1
Name | Job | Level | Value |
Alan | Accountant | I | B |
Mark | Accountant | II | C |
Current solution that I have found is to do a lot of nested lookupvalues
Hi @RobWayne -
Unpivoting Job List is the first step. You want the data to look like this:
Job | Level | Value |
Accountant | I | B |
Accountant | II | C |
Accountant | III | D |
Manager | I | D |
Manager | II | E |
Manager | III | F |
Then the DAX should be straightforward
JobValue =
LOOKUPVALUE (
JobList[Value],
JobList[Title], Table1[Title],
JobList[Level], Table1[Level]
)
Hope this helps
David