Forum Discussion

IvanS's avatar
IvanS
Helper V
3 years ago
Solved

Work efficiency calculation

Hi guys,   I would need your help with calculating work efficiency for our workers. I have 2 tables - FACT_Tasks and DIM_Users FACT_Tasks contains following fields: - Task ID - Working time (i...
  • Bifinity_75's avatar
    3 years ago

    Hi IvanS , If I understood correctly, you have to create a measure similar to this:

    Result= SWITCH(
                    TRUE(),
                    'Your date column' <= DATE(2022,1,1), DIVIDE(sum('Working time'), NETWORKDAYS(DATE(YEAR(TODAY()), 1, 1), TODAY(), 1),"-"),
                    'Your date column' > DATE(2022,1,1), DIVIDE(sum('Working time'), NETWORKDAYS(Employment date, TODAY(), 1),"-"),
                    "")

    Best regards