Forum Discussion
vjnvinod
6 years agoImpactful Individual
Week Number calculated coloumn
Hi, i am using the below calculated coloumn to arrive at week number, but the output what its is giving me is based on Calendar year Week Number = WEEKNUM('Date'[Date]) I need output based o...
- 6 years ago
vjnvinod ,
Please find the attached file
amitchandak
6 years agoSuper User
Create a column start of year
start of year = startofyear([Date],"06/30")
Weekno = quotient(datediff([start of year],[Date],day),7) +1
OR
Weekno = quotient(datediff([start of year],[Date],day)+1,7) +1
You can move year start to week start like
Week Start date = 'Table'[start of year]-1*WEEKDAY('Table'[start of year],2)+1
https://docs.microsoft.com/en-us/dax/quotient-function-dax
- vjnvinod6 years agoImpactful Individual
here is the calendar
https://drive.google.com/file/d/12EIubQ81bBk1IhcGPE8FKtYXZRucvs9k/view?usp=sharing
and also the pbix
https://drive.google.com/file/d/1kchwmBCutj5PCnF7BRKsTA03hYpIGKtw/view?usp=sharing
thanks so much for your help
- amitchandak6 years agoSuper User
vjnvinod ,
Please find the attached file
- vjnvinod6 years agoImpactful Individual