Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Last week Dax

Dear All,    I have this formula below to calculate period in date for weeks but it keeps bringing the wrong data    Last week = CALCULATE([PPE Lsum], DATESINPERIOD('Calendar'[date], TODAY(),-7,D...
  • Anonymous's avatar
    Anonymous
    6 years ago

    ThanK you deevaker the solutioin worked. 

    LastWeek = CALCULATE(SUM('Occupational Safety'[Value]),filter(ALLEXCEPT('Occupational Safety','Occupational Safety'[PPE],'Occupational Safety'[YEAR]),'Occupational Safety'[Week]=WEEKNUM(TODAY(),1)-1))