Forum Discussion
CarlsBerg999
4 years agoHelper V
Lookup from the same table
Hi, My data looks like the picture below. What i need to do is a calculated column (green), where each Child gets the name of the Parent. - Each Child has a Parent - The Parent column works a...
- 4 years ago
Hi, CarlsBerg999 ;
You could use column or measure by dax:
COLUMN = CALCULATE(MAX('Table'[Name]), FILTER('Table','Table'[ID]=EARLIER('Table'[Parent])))Measure = CALCULATE(MAX('Table'[Name]), FILTER(ALL('Table'),'Table'[ID]=MAX('Table'[Parent])))The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
speedramps
4 years agoSuper User
Try this ....
Goal =
VAR myparent= SELECTEDVALUE('Table'[Parent])
RETURN
CALCULATE(
SELECTEDVALUE('Table'[Name]),
ALL('Table'),
'Table'[ID] = myparent
)
Nect time please copy and paste example tables as data into chats so we cam import the data and build solutions. Dont send snap shorts. It takes ages to retype it ☹️
Thanks for reaching out for help.
I have helped you, now please help me by giving kudos.
Remeber we are unpaid volunteers.
Click the thumbs up and accept as solution button.
One question per ticket please. If you need to extend your request then please raise a new ticket.
You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you !