Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
macinr
Helper I
Helper I

How to refer to the same table for value of a parent

I have a structure 

 

Id, Parent Id, Name

 

How do I create a column Parent Name so I have a table like:

 

ID, Parent Id, Name, Parent Name?

 

where the parent name is based on Name corresponding to ID?

 

I tried lookup, etc. but unable to achieve above because lookup is not based on the current row but expects a scalar value...

 

 

1 ACCEPTED SOLUTION
macinr
Helper I
Helper I

Ok, as simple as 

 

Parent Delivery Phase = LOOKUPVALUE('Work Items - Today'[Delivery Phase], 'Work Items - Today'[Work Item Id], 'Work Items - Today'[Parent Work Item Id])
 
For some reason it did not work earlier, must have been some typo

View solution in original post

1 REPLY 1
macinr
Helper I
Helper I

Ok, as simple as 

 

Parent Delivery Phase = LOOKUPVALUE('Work Items - Today'[Delivery Phase], 'Work Items - Today'[Work Item Id], 'Work Items - Today'[Parent Work Item Id])
 
For some reason it did not work earlier, must have been some typo

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.