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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.