Forum Discussion

IoannisT's avatar
IoannisT
Advocate I
2 years ago
Solved

Same table TEXT lookup

Hello Fabric Community.   I have searched over the forum (and other sources), but I am unable to make a same table TEXT lookup function to work.   I have a raw data table with Employee name, Empo...
  • Bmejia's avatar
    Bmejia
    2 years ago

    if you really need to use lookupvalue it should be something like this. 

    L2 Manager =
    VAR L2M = LOOKUPVALUE(PathTable[Manager-ID],PathTable[E-ID],PathTable[Manager-ID])
    RETURN
    IF(L2M=PathTable[Manager-ID],BLANK(),L2M)
    -------------------------------------------------------
    L3 Manager =
    VAR L3M = LOOKUPVALUE(PathTable[L2 Manager],PathTable[E-ID],PathTable[Manager-ID])
    RETURN
    IF(L3M=PathTable[Manager-ID],BLANK(),L3M)