Forum Discussion
YuanG
10 years agoHelper I
Show data by week number
Hi Everyone, I'm working on a line chart with some data calcul by week ,and i want the data not show in format dd/mm/yyyy, but with the number of weeks in year. Like this chart, in 27 June 20...
- 10 years ago
The calendar is separate and more useful that way. In fact, having your week numbers in your fact table may be throwing off the calculation and sort. While I don't have time to fully explain this, at this time, I wanted to at least respond and share a link that could help.
https://www.sqlbi.com/articles/week-based-time-intelligence-in-dax/
cmonnette
9 years agoNew Member
I was able to resolve this by adding the following column to my data table and then sorting in default order.
"WorkWeek", YEAR([date]) & format(WEEKNUM ( [Date] ),"00")
Anonymous
8 years agoNot applicable
can you explain a bit more how you did it?