Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hey all,
I have a big problem!
For where I work, the weeks start on a Monday, but as you can see below it's wrong.
For the Wk32 it should show values from the 8th to14th.
The columns Month, week number and date are columns from a calendar table that comes from a database.
When I add, week start date calculated column, it shows the wrong the result as well.
Here is what I'm using for the calculated column.
Thanks very much!
Solved! Go to Solution.
Hi @ROG ,
According to your description, the week num of the year should starts at a weekday.
Here's my solution, create a calculated column.
Week Number =
WEEKNUM ( [Date], 2 )
- IF ( WEEKDAY ( STARTOFYEAR ( 'Calendar'[Date] ), 2 ) IN { 6, 7 }, 1, 0 )
Both the week number and week start date get correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ROG ,
According to your description, the week num of the year should starts at a weekday.
Here's my solution, create a calculated column.
Week Number =
WEEKNUM ( [Date], 2 )
- IF ( WEEKDAY ( STARTOFYEAR ( 'Calendar'[Date] ), 2 ) IN { 6, 7 }, 1, 0 )
Both the week number and week start date get correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ROG WEEKNUM(..., 2) has weeks starting on Monday.
WEEKNUM function (DAX) - DAX | Microsoft Docs
Also WEEKDAY is similar
WEEKDAY function (DAX) - DAX | Microsoft Docs
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 31 | |
| 27 | |
| 24 |