Forum Discussion
Calculating Previous Week Data
- 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.
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.
Hi, clarkey1988
According to the sample picture you posted, the measure seems to be correct and useful. And it seems that the reason why the value of the 20 Week is blank is that the [week number] has been filtered by the visual filter?
You can try to remove the filter and check if the measure can work.
If you still have a problem, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
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.
- clarkey19885 years agoHelper II
That filter was jsut the top 2 max weeks so don't think that has an impact. However, I had 4 filters in my original picture. Once I clear them the measure works correctly. Somehow the filters are breaking the measure - but I thought I accounted for them in the measure code itself?
- v-robertq-msft5 years agoCommunity Support
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.
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.
- clarkey19885 years agoHelper II
Hi everyone - I figured it out. Thanks so much for everyones help!