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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Forcing the months to appear in the Line and Stacked Column chart

 

I need to force all twelve months for the year to stay at the bottom of the Line and Stacked Column chart. They are there when the report opens but only the months I have in the data stay in the chart when I select an item to populate the report.

Can I accomplish this with this visual or is there a different visual that I should use to accomplish this?

 Thanks for you help, Mark

 

 Untitled.png

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Anonymous ,

 

Please create a calendar table which is linked to fact data table based on [Date] field.

calendar table = ADDCOLUMNS(CALENDAR(DATE(2018,3,1),DATE(2018,12,30)),"Year",YEAR([Date]),"Month",MONTH([Date]))

 

Rather than directly add [Date] field onto chart axis, please drag columns [Year] and [Month] onto axis. Use the highlighted drill down button to expand the chart. 

2.PNG

 

Also, enable the "Show item with no data" option.

1.PNG

 

Best regards,

Yuliana Gu

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

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @Anonymous ,

 

Please create a calendar table which is linked to fact data table based on [Date] field.

calendar table = ADDCOLUMNS(CALENDAR(DATE(2018,3,1),DATE(2018,12,30)),"Year",YEAR([Date]),"Month",MONTH([Date]))

 

Rather than directly add [Date] field onto chart axis, please drag columns [Year] and [Month] onto axis. Use the highlighted drill down button to expand the chart. 

2.PNG

 

Also, enable the "Show item with no data" option.

1.PNG

 

Best regards,

Yuliana Gu

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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