cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
macinr Frequent Visitor
Frequent Visitor

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

Accepted Solutions
macinr Frequent Visitor
Frequent Visitor

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

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 Frequent Visitor
Frequent Visitor

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

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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors