Hi I have a calendar table with a column that shows the monday of the week. And I need to calculate the sales, receivings and on hand for each week.
So what I thought was take the selected week starting on a monday. And subtract all sales and receivings since then.
my dCalendar has a monday start of the week column. But my formula below doesnt work. It just says error.
1WK AGO RECEIVED:=CALCULATE('tblInvSkuMaster'[RECEIVED TOTAL UNITS],DATESBETWEEN(dCalendar[WEEKS-MON],dCalendar[WEEKS-MON]-7))
This formula works but calculates all values as of today to show what our position was 7 days ago.
UNITS RECEIVED 1WK AGO:=CALCULATE('tblInvSkuMaster'[RECEIVED TOTAL UNITS],DATESBETWEEN(dCalendar[DATES],TODAY()-7,TODAY()))
Thanks
So what I thought was take the selected week starting on a monday. And subtract all sales and receivings since then.
my dCalendar has a monday start of the week column. But my formula below doesnt work. It just says error.
1WK AGO RECEIVED:=CALCULATE('tblInvSkuMaster'[RECEIVED TOTAL UNITS],DATESBETWEEN(dCalendar[WEEKS-MON],dCalendar[WEEKS-MON]-7))
This formula works but calculates all values as of today to show what our position was 7 days ago.
UNITS RECEIVED 1WK AGO:=CALCULATE('tblInvSkuMaster'[RECEIVED TOTAL UNITS],DATESBETWEEN(dCalendar[DATES],TODAY()-7,TODAY()))
Thanks