Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Sorry a DAX newbie question,
Funny but in MySQL this is a piece of cake but with DAX I'm fumbling for a soultion.
I have two tables namely an employee heirarchy and the main employee database
I simply wanted to basically convert the ID's in the Employee Heirarchy table into real names, the Primary Key Employee ID is a easy one because of the relationship between the Heirarchy and the Main Employee Database but I am stuck on the Supervisor ID. My idea was to do a New Column with a formula, I already did RELATED, RELATEDTABLE with FILTERS but I'm getting an error could you please help me with the correct syntaxt to achieve this?
Output Desired:
Employee Name | Supervisor Name |
Gattuso, Buena | Luper, Stacey |
Dorrington, Berry | Luper, Stacey |
Mclure, Lena | Luper, Stacey |
Laurion, Chang | Luper, Stacey |
Reppe, Maragaret | Luper, Stacey |
Hovland, Merrilee | Luper, Stacey |
Iman, Cary | Luper, Stacey |
Grimmett, Aiko | Luper, Stacey |
Shader, Kourtney | Luper, Stacey |
Wamack, Joycelyn | Luper, Stacey |
Babine, Salley | Mcnutt, Eliana |
Gaiser, Dixie | Mcnutt, Eliana |
Resureccion, Beula | Mcnutt, Eliana |
Sereno, Signe | Mcnutt, Eliana |
Wooster, Charlene | Mcnutt, Eliana |
Lamango, Marcia | Mcnutt, Eliana |
Byington, Rosaura | Mcnutt, Eliana |
Dorosh, Tifany | Mcnutt, Eliana |
Blakeley, Audrie | Mcnutt, Eliana |
Ajose, Hermine | Mcnutt, Eliana |
Employee Heirarchy
Employee ID | Supervisor ID |
777444 | 546881 |
516336 | 546881 |
280658 | 546881 |
548395 | 546881 |
907842 | 546881 |
264933 | 546881 |
273334 | 546881 |
383585 | 546881 |
249598 | 546881 |
182419 | 546881 |
609877 | 638013 |
759223 | 638013 |
734526 | 638013 |
262795 | 638013 |
959846 | 638013 |
178647 | 638013 |
456596 | 638013 |
600668 | 638013 |
230856 | 638013 |
614484 | 638013 |
Complete Employee Table (Fictional Names)
Employee ID | Last Name | First Name | Full Name | Role |
546881 | Luper | Stacey | Luper, Stacey | Supervisor |
638013 | Mcnutt | Eliana | Mcnutt, Eliana | Supervisor |
777444 | Gattuso | Buena | Gattuso, Buena | Rand & File |
516336 | Dorrington | Berry | Dorrington, Berry | Rand & File |
280658 | Mclure | Lena | Mclure, Lena | Rand & File |
548395 | Laurion | Chang | Laurion, Chang | Rand & File |
907842 | Reppe | Maragaret | Reppe, Maragaret | Rand & File |
264933 | Hovland | Merrilee | Hovland, Merrilee | Rand & File |
273334 | Iman | Cary | Iman, Cary | Rand & File |
383585 | Grimmett | Aiko | Grimmett, Aiko | Rand & File |
249598 | Shader | Kourtney | Shader, Kourtney | Rand & File |
182419 | Wamack | Joycelyn | Wamack, Joycelyn | Rand & File |
609877 | Babine | Salley | Babine, Salley | Rand & File |
759223 | Gaiser | Dixie | Gaiser, Dixie | Rand & File |
734526 | Resureccion | Beula | Resureccion, Beula | Rand & File |
262795 | Sereno | Signe | Sereno, Signe | Rand & File |
959846 | Wooster | Charlene | Wooster, Charlene | Rand & File |
178647 | Lamango | Marcia | Lamango, Marcia | Rand & File |
456596 | Byington | Rosaura | Byington, Rosaura | Rand & File |
600668 | Dorosh | Tifany | Dorosh, Tifany | Rand & File |
230856 | Blakeley | Audrie | Blakeley, Audrie | Rand & File |
614484 | Ajose | Hermine | Ajose, Hermine | Rand & File |
Solved! Go to Solution.
Hi
Try this for calculated column:
=LOOKUPVALUE(Employees[Full Name],Employees[Employee ID],[Supervisor ID])
Hi
Try this for calculated column:
=LOOKUPVALUE(Employees[Full Name],Employees[Employee ID],[Supervisor ID])
User | Count |
---|---|
89 | |
82 | |
53 | |
40 | |
35 |