Forum Discussion

clarkey1988's avatar
clarkey1988
Helper II
5 years ago
Solved

Calculating Previous Week Data

Hi,   I wonder if anyone cna help me. I'm trying to calculate the previous week's sum of weight. So for week 20 in the screen shot below I need the Previous Week Weight column to reflect Week 19's ...
  • v-robertq-msft's avatar
    v-robertq-msft
    5 years ago

    Hi, clarkey1988 

    If you think that the filters are breaking the measure, I suggest you to use the ALL() function to replace the ALLExcept() function in your original measure. Because the ALL() function can ignore any filters outside that might have been applied to avoid the effect of the visual filter.

    ALL() function in DAX

     

    Thank you very much!

     

    Best Regards,

    Community Support Team _Robert Qin

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.