Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Solved! Go to Solution.
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))
First measure looks correct. Hope the relationship between your tables are fine.
In second table, look like you need to use >= instead of = while doing filter.
LastWeek = CALCULATE(SUM('Occupational Safety'[Value]),filter(ALL('Occupational Safety'[Week]),'Occupational Safety'[Week]>=WEEKNUM(TODAY(),1)-1))
@deevaker Could you look at my Dax Measure? do all columns have to reference the same table?
Thanks,
But I tried it but it didn't work.
Shall we check. you can ping me on skype - deevaker1
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))