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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.