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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Vanessa250919
Helper V
Helper V

Date with 2 years in graph

Hello, I have one issue with my date. I created a hierarchy and I need in my graph First 2020 and after 2021 and If a expand to next level all my data is mixed ... It's possible to show 2020 and after 2021 ?

 

 

Vanessa250919_0-1621583355158.png

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Vanessa250919 , i think the sort order is not correct. Create the column in a date table/table with the correct sort column.

 

 

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

 

In this case you have mark Month Year sort as a sort column for Month Year 

 

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

 

Also you can check concatenate label off with sort on axis columns 

 

Concat 1.pngConcat Label Off.pngConcat2.png

 

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

And it's possible to used a hierarchy  ? @amitchandak 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Vanessa250919 , i think the sort order is not correct. Create the column in a date table/table with the correct sort column.

 

 

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

 

In this case you have mark Month Year sort as a sort column for Month Year 

 

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

 

Also you can check concatenate label off with sort on axis columns 

 

Concat 1.pngConcat Label Off.pngConcat2.png

 

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

@amitchandak  It's possible with week ? 

And it's possible to used a hierarchy  ? @amitchandak 

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 Kudoed Authors