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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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
Super User
Super User

Hi @Anonymous 

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
Super User
Super User

Hi @Anonymous 

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors