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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jakeryan56
Helper III
Helper III

Date sort issue with visual

I have data coming from two different sources (SalesDataFY17Q3 and SalesDataCurrent) into a combined query (SalesData). One of the sources is data from last quarter (October, November December) and the other is the current quarter (Jan, Feb, Mar).
I have created a visual for trends of measures over time. All the data displays correctly but when I "Sort by month" it doesn't sort them in the correct order as seen in the screenshot below.
Any ideas?

P.PNG

5 REPLIES 5
Phil_Seamark
Employee
Employee

Hi @jakeryan56

 

I don't thnk the screenshot worked, sorry.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Oops, can you see it now?

Hi @jakeryan56,

 

Have you tried the solution provided above? Does it work in your scenario? If you still have any question, feel free to post it here. Smiley Happy

 

Regards

Hi

I suspect you need to add a year component. So change 'January' to 'January 17'. This includes the underlying column you may be using as a 'sort by column'.

Do you have a Calendar table in your model?

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

If you leave the data grouped as 'January' then you risk having the following data all being grouped into one bucket which is probably not what you are after.

 

  • January 2015
  • January 2016
  • January 2017

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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