Forum Discussion
prakash11440278
Post Prodigy
3 years agoWeek number reset for every month not working
Hi PBI Experts, I am not able to get the week number reset for every month. My week will start on monday for every week. I tried the below dax expression it is giving fine for those months having 4 ...
Ritaf1983
Super User
3 years agoTry to use :
WeekNum = ROUNDUP(DIVIDE(DAY('Calendar'[Date])-1, 7), 0)+1
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
prakash11440278
Post Prodigy
3 years agoHi Ritaf1983 , Thanks for your reply.
I tried the expression. It is not giving the requred result. March month is starting with week number 2 & May month starting first day as 1 remaining 2 is coming. PFB screen shots.
- Ritaf19833 years ago
Super User
This is because first monday in march is 06/03.
Try to modify it for :
Week = WEEKNUM('Calendar'[Date],2)-WEEKNUM(EOMONTH('Calendar'[Date],-1)+1,2)+1Seems it works:If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- prakash114402783 years ago
Post Prodigy
Hi Ritaf1983 , Thanks a lot for your quick reply.
I tried the expression below are the results. Seems i am not getting correct data.
Considering the April 23 month. Week start on monday and end on sunday.
April 3rd to 9, should display as week 1