Forum Discussion
Cumulative total (last week)
- Anonymous5 years ago
Hello sevenhills I had a chance to play around with the formula above and was able to make minor tweaks to get what I needed and correct the issue that was happening with your measure. The issue was that the very last cumulative date in the previous week column was matching with the actual previous week's total as I mentioned in a previous post. I've changed it to this, which now captures my last row correctly according to what I need. Thanks for getting me on the right path! Will mark your answer as a solution (with minor tweaks) 😀
Prev Cumulative Week RMA Count =VAR CurrentWeek = MAX('Date Table'[WeekEnding])RETURN CALCULATE([Distinct Count of RMAs], ALLEXCEPT('Date Table','Date Table'[WeekEnding]),'Date Table'[WeekEnding]<= (CurrentWeek - 1) )
Just curious, wondering whether you tried using "-7"
- Anonymous5 years agoNot applicable
Hello sevenhills I had a chance to play around with the formula above and was able to make minor tweaks to get what I needed and correct the issue that was happening with your measure. The issue was that the very last cumulative date in the previous week column was matching with the actual previous week's total as I mentioned in a previous post. I've changed it to this, which now captures my last row correctly according to what I need. Thanks for getting me on the right path! Will mark your answer as a solution (with minor tweaks) 😀
Prev Cumulative Week RMA Count =VAR CurrentWeek = MAX('Date Table'[WeekEnding])RETURN CALCULATE([Distinct Count of RMAs], ALLEXCEPT('Date Table','Date Table'[WeekEnding]),'Date Table'[WeekEnding]<= (CurrentWeek - 1) )- sevenhills5 years ago
Super User
Thank you and glad I was able to provide the right direction.
🙂
- Anonymous5 years agoNot applicable
sevenhills Your measure works for all of the prior weeks except the most recent one. I think because it is looking 7 days back from today, instead of grabbing the full previous calendar week. In other words, the last row below should show 2,132 in the 3rd column, and 17 for the difference (last column). This would give me the full week of last week. So, very close to what I need, but not quite exactly. In the table I'd like to show the cumulative total as of this week, 2nd column, and then the full total (as of the end of the last calendar week, 3rd column). Ideally, I would also use those values in a card visual as well. For example, to show this week, last week, and create a measure to show the difference.
- sevenhills5 years ago
Super User
Based on your reply, you need the (value upto) completed last week date.
What is the currentdate represents?
Please check for Week End Date ...
- Anonymous5 years agoNot applicable
CurrentDate is simply the current date. Yes, correct, I need the value "up to" the prior calendar week.