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
jws123
Regular Visitor

Sorting by month/date in Past Year

I am setting up my visualizations to show the past year month by month. I have used the filters to limit the data to the past year, but would like the months sorted in order of how recent they were. For example, since it is February, I would like my visual's X axis to be sorted like Feb 2017, Mar 2017, Apr 2017, May 2017,..., Jan 2018, Feb 2018. I also would like to do the same thing with day by day data for the past month 27th, 28th, 29th,..., 25th, 26th.

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @jws123,

 

What kind of data do you have?

Did you try the feature as the snapshot shows?

What's the status now?

Sorting_by_monthdate_in_Past_Year

 

Best Regards,

Dale

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

I am working with data from a DirectQuery in DateTime format. I have tried sorting by the month number but get the order 1, 10, 11, 12, 2, ..., 9. 

Anonymous
Not applicable

Hello,

 

Direct Query doesn't support time intelligence.

 

https://docs.microsoft.com/en-gb/power-bi/desktop-use-directquery

 

Regards

Okay. I figured a way to get it to work by numbering the months compared to the current month then sorting the visual based off of this set of numbers. Thanks for the help. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.