Forum Discussion

garethp's avatar
garethp
Frequent Visitor
6 years ago
Solved

Issues with calculating previous week value

Hi guys,

 

Apologies that this question is being asked again, I have gone through countless posts asking for help with calculating the previous weeks values however the solutions didn't work and I'm suspecting it could be because my data is structured differently.

 

I am trying to create a measure that will calculate the total number of occurences (sum of the value column) for the previous week. I have generated a 'week ending' column from the date column and also generated a previous week column which I have been trying to use in my attempts to solve this however I haven't been able to get it to work.

 

If anyone is able to assist it would be much appreciated . Please see below for a sample of the data, and here is what the intended result should be:

Row LabelsSum of ValuePrevious Week
1/12/201912-
8/12/20191112
15/12/20192911
22/12/20193829
29/12/2019538
5/01/2020145
12/01/20204814
19/01/20203348
26/01/20203733
2/02/20202437
9/02/2020724

 

 

https://drive.google.com/file/d/1vr6wkPT-MnXJoodHSXyAtljvJ0RM8PI2/view?usp=sharing

 

Thanks in advance.

4 Replies