Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
SJ25
Resolver I
Resolver I

Displaying all weeks in Matrix columns

Hello All,

 

I have created a matrix with week numbers as columns and count of orders as values. I have some weeks where no orders have come in, but the matrix is only displaying week numbers where there are some orders. Is there a way to display all week numbers if if there's no orders that week?

 

Thanks

 

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @SJ25 

 

Similar to the post I encountered the other day:

https://community.powerbi.com/t5/Desktop/Show-all-columns-for-aging-report/m-p/1080466#M500394 

 

Add a calendar table and manage the relationship, then use the calendar date instead of the original date.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

@v-diye-msft  & @kentyler I generated a calendar table using the following formula:

Calendar Table = CALENDAR(DATE(2020,01,01),DATE(2020,12,31)) and added a week column in that table, so each date has a week number associated with it. Then I created a relationship between the other week column and the one in calendar table (many to many), however my matrix is still skipping some week numbers (image below)
 
image.png
 
Anything that I'm missing?
 
UPDATE: In order to get all weeks, after creating a calendar table I had to create another table with just the unique weeknum values and have a one to many relationship with the other week column
kentyler
Solution Sage
Solution Sage

If you add a Calender Table, then that table will contain records for all weeks, regardless of whether they held orders or not.

You can use the week number column from the calendar table to supply the list of weeks for your visual, so it will display weeks, even if they have no orders.





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.