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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
shiner1
Frequent Visitor

Need some help! Clustered stacked column chart or any chart.

Hello

 

How can I show multiple years/months of sales history in a bar line graph without Power Bi adding the months together?

 

Like say you want to show a range of actual sales for September 2016-September 2017 in a graph. In Excel the graph's first month would be September 2016 and end September 2017. Power Bi on the other hand only shows 12 columns for the Calendar year and adds any months selected from the previous year to the current year.

 

Here is an example in Excel of how it should be:

 

 

 

 

Capture6.JPG

 

 

Here is how Power Bi organizes the data: It starts to add any months from the previous year together instead of the graph starting from September 2016.

 

Does anyone know how to solve this?

 

 

Capture.JPG

 

Thanks

 

Kyle

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @shiner1,

 

Supposing you have a calendar table to do your dates in your visuals, add a column with the following code:

Month_Year = FORMAT('Calendar'[Date];"mm/yyyy")

Then use this column for your x-axis , if you want to have it on the first day of the month just change the formula to:

Month_Year = FORMAT('Calendar'[Date];"1/mm/yyyy")

(European format if needed as you have it in your chart just change the order of day/month)

Regards,

MFelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
shiner1
Frequent Visitor

How do I sort the months in Calendar year format instead of A-Z or Z-A? Like: Jan, Feb, Mar, April, May, June, July, Aug, Sept, Oct...

 

Thanks,

 

Kyle

MFelix
Super User
Super User

Hi @shiner1,

 

Supposing you have a calendar table to do your dates in your visuals, add a column with the following code:

Month_Year = FORMAT('Calendar'[Date];"mm/yyyy")

Then use this column for your x-axis , if you want to have it on the first day of the month just change the formula to:

Month_Year = FORMAT('Calendar'[Date];"1/mm/yyyy")

(European format if needed as you have it in your chart just change the order of day/month)

Regards,

MFelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



This is how it looks now: I would like to see it in Calendar order not ABC order which is what it's in now. Does anyone know how to do this?


Any help is greatly appreciated. Thanks

 

Capture8.JPG

Thanks!

 

How do I sort the months in Calendar year format instead of A-Z or Z-A? Like: Jan, Feb, Mar, April, May, June, July, Aug, Sept, Oct...

 

Thanks,

 

Kyle

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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