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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
U156531
Helper V
Helper V

Adding years to Stacked Column Chart when there is no row for that year

I have a Stacked Column Chart where some years do not have a row of data. Is there a way to get the year to show up even though there isn't a row for that year in the table?

 

Thanks

1 ACCEPTED SOLUTION
SamWiseOwl
Community Champion
Community Champion

Hi @U156531 

Create a table with all the items you need, join to the existing date, then use this years column in the visual.

Go to the Columns section,use the drop down and choose Show items with No Data.

SamWiseOwl_1-1722953581901.pngSamWiseOwl_2-1722953621027.png

 

 

Here is a blog on creating a calendar table: https://www.wiseowl.co.uk/blog/s2947/calendarauto-table.htm

If you have no date, copy the code and replace calendar auto with
Calendar("01 Jan 2023", "31 Dec 2024") or what ever start and end date you like 🙂

SamWiseOwl_0-1722953542332.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

1 REPLY 1
SamWiseOwl
Community Champion
Community Champion

Hi @U156531 

Create a table with all the items you need, join to the existing date, then use this years column in the visual.

Go to the Columns section,use the drop down and choose Show items with No Data.

SamWiseOwl_1-1722953581901.pngSamWiseOwl_2-1722953621027.png

 

 

Here is a blog on creating a calendar table: https://www.wiseowl.co.uk/blog/s2947/calendarauto-table.htm

If you have no date, copy the code and replace calendar auto with
Calendar("01 Jan 2023", "31 Dec 2024") or what ever start and end date you like 🙂

SamWiseOwl_0-1722953542332.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.