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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
amanpatel9
Regular Visitor

The graph's weekly values are not sorted in chronological order

Hello, community,

 

I have been recently trying to sort the week's values into chronological order, which is correctly done in the source Excel file, but I can't update the same source order into the 'Line & Stacked Column chart'.

 

Please find the attached 3 images; (PowerBI - Graph) is the one which is not sorted chronologically and the (Power BI - Transform) and (Excel File) are the sources which can be seen visibily sorted in the order. Screenshot 2025-02-18 105516.pngimage.pngimage.png

 

Please let me know how this can be resolved,

 

Regards

1 ACCEPTED SOLUTION

Hi, Thanks for supporting answer, I didn't tried this further as I found the solution with the other way. But thank you for quickly replying me with the solution.

View solution in original post

4 REPLIES 4
danextian
Super User
Super User

Hi @amanpatel9 

 

Those week numbers are texts so they will be, of course, sorted alphabetically. You will need to create a custom column sort for them.  Start with a the year and then followed by the week number in "00" format. Example: 202401, 202410, 202425, 202501... Then custom sort your week number by that additional column. https://www.youtube.com/watch?v=4xapOrfLvbg 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi, Thanks for supporting answer, I didn't tried this further as I found the solution with the other way. But thank you for quickly replying me with the solution.

audreygerred
Super User
Super User

Hi! By default the chart is sorting by value. Select your visual, click the 3 dots that appear in the upper right (or lower right depending on where your visual is on your page), click sort axis and change it from sorting on your measure to sorting on your dimension.





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

Proud to be a Super User!





Hi!  

 

I tried the option with three dots but I can't see the options you're referring to, I have tried many options like ascending to descending and also week number (attached image)  but it's not what I am looking into. 

image.png

amanpatel9_0-1739915294438.png

 

Thanks

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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