Forum Discussion

Spencer's avatar
Spencer
Icon for Helper II rankHelper II
9 years ago
Solved

Dividing by column in another table

Hi   I have a bunch of em_codes associated with my calculated column ALRemain. I want a new column which divides the ALRemain by a value associated with the em_code (the hours column), which can b...
  • ankitpatira's avatar
    9 years ago

    Spencer Create relationship between Hours and ALRemain table using em_code column ie 1 to many relation from Hours table to ALRemain table. Then in ALRemain table create calculated column as below,

     

    ='TABLENAME'[alremain] / RELATED(TABLENAME[hours])