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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dinesharivalaga
Helper II
Helper II

Month Year Sorting Issue with my report

Hi All ,

 

My visuals having an issue with monthyear sorting after September Month (Month Index 9) , after October month refresh it got changed the order like below (after month index 9 , Power Bi taking 10 as a starting and changed the order) , i am displaying last 4 months data in the visuals so that it looks like this , Jan to Sep no issue ..

 

dinesharivalaga_0-1702275531242.png

 

DAX --> Month Format = FORMAT('R2A GL Lease Acc_New'[MonthYear],"MMM-YY")

 

dinesharivalaga_2-1702275938033.png

 

It will change the order back automatically when Jan 2024 refresh done but we have to fix this now and i am using the Month Index column sorting as well .. Is month Index only applicable for Month Column alone ? If true then what would be the fix for my issue ? Please help to sort this out asap .

 

TIA
Dinesh

1 ACCEPTED SOLUTION
ChiragGarg2512
Super User
Super User

@dinesharivalaga Chnage the month index data type to number and sort on the basis of month index. This is happening because the text "10" and "11" comes before string "8" and "9". So according to text the order is correct.

Change the datatype to number.

 

View solution in original post

1 REPLY 1
ChiragGarg2512
Super User
Super User

@dinesharivalaga Chnage the month index data type to number and sort on the basis of month index. This is happening because the text "10" and "11" comes before string "8" and "9". So according to text the order is correct.

Change the datatype to number.

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.