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
lrockwell
Frequent Visitor

Months not in order

I have files from Salesforce, one being Action where there is a Completed Date that the Action has been done,  as well as the same in a file Activity with a Completed Date column as well. When i Chart either action or activity the months are not in order, nor are the quarters. What can I do to fix this issue? File from SalesforceFile from SalesforceChartsCharts

1 ACCEPTED SOLUTION

Capture.PNG

I discovered that if you sort on the visual it will categorize correctly. Redoing the visual in the most current version did not fix the issue. But this sorting method seems to be providing the correct output so I will run with that. 

 

View solution in original post

8 REPLIES 8
v-jiascu-msft
Employee
Employee

Hi @lrockwell,

 

Could you please tell me if your problem was resolved? Please mark the proper answer if it worked. That will be a help to the others.

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 have the latest version of Power BI installed. 

 

This is the error i am getting when i create a new column and sort the Completed Date on that 

Capture.PNG

 

Hi @lrockwell,

 

1. According to my test, the months are in order when drilling down in an intelligent way. Maybe your current visuals were created in the old version. Please try to create a new one. If it works, maybe recreating all the visual would be an easy way.

2. As @kcantor suggested, sort the date column first, then add an index. Finally, we can sort the column by index.

 Months not in order 2.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  

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.

Capture.PNG

I discovered that if you sort on the visual it will categorize correctly. Redoing the visual in the most current version did not fix the issue. But this sorting method seems to be providing the correct output so I will run with that. 

 

@lrockwell, Worked for me as well, thanx!

@lrockwell

Maybe go into query editor and add a date colum using the month number instead of name. then sort the month by the month number.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




v-jiascu-msft
Employee
Employee

Hi @lrockwell,

 

1. I would suggest you upgrade the Power BI Desktop to the newest version. In my test, all the orders are good;

2. Maybe you could add a new column "MonthDay" with this formula. Then click "Completed Date", select "sort by column" "MonthDay".

MonthDay = format([Date],"mmdd")

Months not in order.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Create a date table, then create relationships with the current tables.

Calendar =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2017, 12, 31 ) ),
    "Month", FORMAT ( [Date], "MMMM" ),
    "MonthNum", MONTH ( [Date] ),
    "Quarter", FORMAT ( [Date], "q" )
)

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

Hi, Recently had same type of issue. I had created all types of columns, all correct formatting, that 'logically' should have worked to sort it out.

I didn't want to add a date table to my report initially so I was trying to 'fix' the issue. Finally I gave up, created a seperate datetale, linked to my data on date, and viola!

Try creating a date table as also suggested by @v-jiascu-msft.

 

 

 

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.