Forum Discussion
Adding week to date hierarchy
- 8 years ago
You could try turning off concatentation in your x-axis. To add week hierarchy you would want to create a separate date table using CALENDARAUTO and then add a column using WEEKNUM to that table. You would also want to add columns using YEAR, FORMAT([Date],"mmmm" and a quarter function probably using SWITCH. Then you could build a hierarchy manually using these columns. Relate that table to your other table in the obvious way.
You could try turning off concatentation in your x-axis. To add week hierarchy you would want to create a separate date table using CALENDARAUTO and then add a column using WEEKNUM to that table. You would also want to add columns using YEAR, FORMAT([Date],"mmmm" and a quarter function probably using SWITCH. Then you could build a hierarchy manually using these columns. Relate that table to your other table in the obvious way.
- Anonymous4 years agoNot applicable
Greg_Deckler What is the 'obvious way' of relating the table. I'm glad for you that everything is so crystal clear.
- samnay8 years agoFrequent Visitor
Hello,
Thanks for this reply , it helps.
I would like to know if there is any way to calculate the number of week but depending of the month.
For more details, in a month i have 4 weeks ,so every time i would like to now data related to the firt week of juanary , the second one, thirth one fourth and then first week of february ....
Thanks in advance,
Sara - Anonymous3 years agoNot applicable
I did everything but as mentioned by others, what is the correct way to relate this table with the others? I tried connecting the custom table with a 1 to many relation to the other target date column in the target table but it doesn't work