Forum Discussion

ricardocamargos's avatar
ricardocamargos
Icon for Continued Contributor rankContinued Contributor
9 years ago
Solved

Compare tables

Hi there,   I do need to compare the product and its parent product.   The structure is this:   CD_PRODUCT INT, DS_PRODUCT VARCHAR, VL_PRODUCT NUMERIC, CD_PRODUCT_PARENT INT.   I do need to s...
  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    9 years ago

    Hi ricardocamargos,

     

    In your scenario, you can create a calculated column like below: 

     

    Parentinfo = LOOKUPVALUE(Table2[DS_PRODUCT],'Table2'[CD_PRODUCT],'Table2'[CD_PRODUCT_PARENT])

     

     

    Best Regards,
    Qiuyun Yu