Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello you lovely people, I was hoping someone could help me please
I have a calendar table that shows week number (WeekNum) and start of week (SoWDate) , which I use in a visual. The issue I have is that for the 26 September its showing as week 39, where it should be week 38.
So its showing the visual like this, with week 39 as the 20 Sep, not the 27th as it should be:
Could anyone help please?
I hope I have given enough information. Thank you
Solved! Go to Solution.
Hi, @Pricey79
Do you mean you want to count the week every seven days instead of the calendar week starting from January 1st of each year?
Try to create a column with this:
week =
var _r=RANKX(FILTER('Table','Table'[Year]=EARLIER('Table'[Year])),[Date],,ASC,Dense)
var _w=CEILING(_r,7)
return DIVIDE(_w,7)
result:
Please refer to the attachment below for details. Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Pricey79
Do you mean you want to count the week every seven days instead of the calendar week starting from January 1st of each year?
Try to create a column with this:
week =
var _r=RANKX(FILTER('Table','Table'[Year]=EARLIER('Table'[Year])),[Date],,ASC,Dense)
var _w=CEILING(_r,7)
return DIVIDE(_w,7)
result:
Please refer to the attachment below for details. Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much sir. That fixed the issue, although it states this week ( Week commencing 27 Sep 21) is week 40, whereas I beleve its week 39 of the calander? Is there a way to fix that please?
Thank you for your time
I think its because its counting a few days as the end of december as week 1? Would you happen to know how I could fix that please?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 74 | |
| 66 | |
| 65 |