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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Employee
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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.