Forum Discussion
Fill in Missing Weeks in Matrix Columns when there is no data
Hi All - I am needing to create a full year Matrix with Month-->Week as columns. In some cases there may not be data for a given period, but I still need to show ALL of the Months-->Weeks for the year. I have turned on "Show Items with no data", however it is only showing the Months, not the underlying weeks:
I created a custom column in the data source for the date of the week start:
Date.StartOfWeek([DATE])
Then the "Week Number" is a calculated field for the format -
- Anonymous6 years ago
Create a new table(let's call it TableA) with all the Months in one column(Month) and their respective Weeks (in the same format "ww-yyyy") in another column(WeekNumber) . Join this new table TableA with your existing table on Month column and then use WeekNumber column from TableA in your Matrix visual, instead of using the one in the original table.
Try this and let me know if this works...
Thanks,
Sneha
2 Replies
- AnonymousNot applicable
Create a new table(let's call it TableA) with all the Months in one column(Month) and their respective Weeks (in the same format "ww-yyyy") in another column(WeekNumber) . Join this new table TableA with your existing table on Month column and then use WeekNumber column from TableA in your Matrix visual, instead of using the one in the original table.
Try this and let me know if this works...
Thanks,
Sneha
- AnonymousNot applicable
That worked, thank you!