Forum Discussion

INJAINP's avatar
INJAINP
Frequent Visitor
3 years ago
Solved

How to find a column value based on two other columns

I have a a requiremnet here. The scenario is described below:

 

Hello,

 

I have a requirement here where data looks like below

 

The table data looks like 

IDParent IDName
12A
24B
31C
45D

 

Now i want to find the name of Parent. For example for ID 1 the Parent ID is 2. So i want to return Parent name which in this case would be B.

 

how can i achieve this?

 

Please help

 

Regards

Priyanka

  • Make a calculated column:

     

    ParentName := LOOKUPVLAUE(DataTable[Name], DataTable[ID], DataTable[Parent ID])

2 Replies

  • lukiz84's avatar
    lukiz84
    Icon for Memorable Member rankMemorable Member

    Make a calculated column:

     

    ParentName := LOOKUPVLAUE(DataTable[Name], DataTable[ID], DataTable[Parent ID])