Forum Discussion

Nicholas-Dunne's avatar
Nicholas-Dunne
Frequent Visitor
8 years ago
Solved

Previous week column

Hello,  I would like to return the employee's previous week "Units_Labor". I feel like I'm close but I'm not receiving an error or anything in return.    This is the calc that I'm using.   Pre...
  • v-yulgu-msft's avatar
    8 years ago

    Hi Nicholas-Dunne,

     

    Please try this DAX formula:

    Previous week Hours =
    LOOKUPVALUE (
        'Apprentice loc pull'[Units_Labor],
        'Apprentice loc pull'[emp_code], 'Apprentice loc pull'[emp_code],
        'Apprentice loc pull'[FiscalYear], 'Apprentice loc pull'[FiscalYear],
        'Apprentice loc pull'[Fiscalweek], 'Apprentice loc pull'[Fiscalweek] - 1
    )

    Best regards,

    Yuliana Gu