Forum Discussion
Rolling 4 weeks calculation
dax ,
I am calculating weeks based on the customer requirment.
i.e: Week1 (01-Jan-2020 to 07-Jan-2020)
Thats why we are getting week numbers like this.
Best Regards,
Prasad
Anonymous , these week are always Wed-Tue or only for this year ??
In any case if you have week start date you should able create the rank and other column to get desired data
- Anonymous6 years agoNot applicable
amitchandak , For all years weeks will have same days(7 days).
like week1 (1 jan to 7 jan)
Best Regards,
Prasad- amitchandak6 years agoSuper User
Anonymous ,
This should give correct week, that starts every year. And Week start date.
Week No Start With Year = QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date]),'Date'[Date],DAY),7)+1 Week Start Date = STARTOFYEAR('Date'[Date]) + QUOTIENT(DATEDIFF(STARTOFYEAR('Date'[Date]),'Date'[Date],DAY),7)*7I have given formula above how to get rolling 4 week for values.
Or you can follow this
Check https://www.youtube.com/watch?v=duMSovyosXE
- Anonymous6 years agoNot applicable
amitchandak ,
Is it possible to Remaining days in the year to be assigned to week 52.Means we will have 7 days in a week (7 * 52 = 364) Remainig one day instead of week53 can we have it in Week52(8 days) .
For non leap year week52 will have 8 days.
leap year week52 will have 9 days.