Forum Discussion
Vicentbi
9 years agoFrequent Visitor
Getting Value Sum from previous week
Hi I have been trying to get values for previous week, unfuntuanlly it was not as easy as getting from previous month, with previousmonth function. I alreday used a grouped date on the left...
- 9 years ago
Sorry Mistake is my side.
Try this
Pre Sales =
var End_Date = MIN('Week Sales'[StartOfWeek]) -1
var Start_Date = End_Date - 6
return
CALCULATE(SUM('Week Sales'[Sales]),DATESBETWEEN('Week Sales'[Date],Start_Date,End_Date),ALLSELECTED('Week Sales'[StartOfWeek]))Small Change in your already existing formula .
Change ALLExcpet into ALLSelected, It should work
If not let me know dude.
Vicentbi
9 years agoFrequent Visitor
Strange I do not see where I can attach a file.
I'm attaching it as a photo for now.
Do not know if it works.
This is not the data I was using orgnially but structure should be the same
Vicentbi
9 years agoFrequent Visitor
Welp looks like that did not work.
Please use this link.
https://drive.google.com/open?id=0BybUfI2IKhw7M0NWMlp0bG5VSHc