cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Microsoft
Microsoft

Re: Sorting by month/date in Past Year

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.
Highlighted
Regular Visitor

Re: Sorting by month/date in Past Year

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. 

Highlighted
Frequent Visitor

Re: Sorting by month/date in Past Year

Hello,

 

Direct Query doesn't support time intelligence.

 

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

 

Regards

Highlighted
Regular Visitor

Re: Sorting by month/date in Past Year

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors