Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Dear Guru of PowerBI,
I have this table with three columns :
Worker Name | Successor | Status Plan
A worker could have not a successor or could more than 2 (from 0 to 3).
If I do manually the search
1) Take Worker Name
2) See Successor
3) Take Successor and look it up in Worker Name column
With step 3, I'm able to find the successor, but with dax code I can't
SuccLevel2 =
VAR Suclevel1 = LOOKUPVALUE(<Successor Name>, <Worker Name>, <Worker Name>)
VAR Suclevel2 = LOOKUPVALUE(<Successor Name>, <Worker Name>, Successore1)
return Suclevel2
How can I do it?
Solved! Go to Solution.
Hi @Anonymous
Thanks for the reply from @lbendlin .
@Anonymous , here is my testing for your reference:
My sample:
Create a calculated column as follows
CombinedSuccessors =
VAR SuccLevel1 = LOOKUPVALUE('Table'[Successor], [worker name], [Worker Name])
VAR SuccLevel2 = LOOKUPVALUE('Table'[Successor], [worker name], SuccLevel1)
VAR SuccLevel3 = LOOKUPVALUE('Table'[Successor], [worker name], SuccLevel2)
RETURN
IF(ISBLANK(SuccLevel1), BLANK(), SuccLevel1) &
IF(ISBLANK(SuccLevel2), BLANK(), "," & SuccLevel2) &
IF(ISBLANK(SuccLevel3), BLANK(), "," & SuccLevel3)
Output:
If this sample data is structurally different from the one you are using, please provide some sample data and the results you are hoping for: How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show them as screenshots or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thanks for the reply from @lbendlin .
@Anonymous , here is my testing for your reference:
My sample:
Create a calculated column as follows
CombinedSuccessors =
VAR SuccLevel1 = LOOKUPVALUE('Table'[Successor], [worker name], [Worker Name])
VAR SuccLevel2 = LOOKUPVALUE('Table'[Successor], [worker name], SuccLevel1)
VAR SuccLevel3 = LOOKUPVALUE('Table'[Successor], [worker name], SuccLevel2)
RETURN
IF(ISBLANK(SuccLevel1), BLANK(), SuccLevel1) &
IF(ISBLANK(SuccLevel2), BLANK(), "," & SuccLevel2) &
IF(ISBLANK(SuccLevel3), BLANK(), "," & SuccLevel3)
Output:
If this sample data is structurally different from the one you are using, please provide some sample data and the results you are hoping for: How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show them as screenshots or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Have you considered using the PATH functions instead?
Yes, I've considered PATH function but since some successor are not present in dataset, PATH returns an error (That is correct).
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |