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
Anonymous
Not applicable

sorting on multiple years data

Hi All,

 

I've calendar which contains the mulitple years of infomation and i have liked this calendar to transaction table.

 

But i couldn't sort it by y year-month. Attached the screenshot for your reference.

 

Thank you.Calendar.PNGfunnel stage.PNG

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

To the x-axis of your visual, drag 2 columns - Year and Month.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

Do you mean you'd like to set the month sorting from 2019/01-2019/12 in order?

please kindly refer to this post:

https://community.powerbi.com/t5/Desktop/Month-sort-for-multiple-years-data/m-p/345504

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

Create following for the month

 

 

sort month = format(date[date],"YYYYMM")

 

 

Then in Model view, mark this as sort column for the month-Year column. In graph sort using sort option under ... 

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
Anonymous
Not applicable

Hi, I am getting below error while sorting based on the sort column.Sorting error.PNG

Hi @Anonymous 

 

Please kindly share your simple worksheet/dummy pbix preferred.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Hi, I am able to fix the issue. Thanks

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 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.

Top Solution Authors