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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
WILLIH
Helper I
Helper I

Date Order

I have a bar chart using dates. I have dates that are from Dec of 2019 going through July 2020. When I put this into a bar chart it is putting Dec last even though the year when the transactions occured was 2019 which should be first.  As you can see in the attached picture it is putting Dec last. It looks like it's not taking into consideration the year.

I have built a date table but still no answer. How do I get the months in order first by year?

 

PBI.PNG

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@WILLIH , there is no year with month. It does not know dec is before July

 

Use Month year.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

You need to add a year to your month. 

 

On your data tab, check that date is set to date Hierarchy, and ensure Month and year are selected. 

Karlos_1-1595433301424.png

 

 

View solution in original post

3 REPLIES 3
dax
Community Support
Community Support

Hi @WILLIH  

You need to know  when you click "go next level in hierarchy", it will show month level, so it will sort by month or alphabetically. So I think you could click below button, which will soty by year-month

792.PNG

 Or you also could refer to @Anonymous ' s suggestions, create a year column.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

You need to add a year to your month. 

 

On your data tab, check that date is set to date Hierarchy, and ensure Month and year are selected. 

Karlos_1-1595433301424.png

 

 

amitchandak
Super User
Super User

@WILLIH , there is no year with month. It does not know dec is before July

 

Use Month year.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.