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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Sort by option not available in line chart

I am trying to show a count of weeks by weeks in descending order.  However, I do not get a sort option in the chart. I need to show the weeks on the x axis in descending order (10 .... 1)  Any help or guidance will be appreciated. Sample Data Images attached.

 

 

 visual options.JPGVisual Example.JPGData Example.JPGVisual Example.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous click on the chart and go in the visualization options in x axis, change type from continuous to categorical.

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

@Anonymous

Create a new measure for count of week numbers, then go to modelling tab and choose "sort by" to sort it by the required column,

Anonymous
Not applicable

@Anonymous

Thanks for the quick response. I assume you meant a new column measure. Can you give me the exact formula for that column? (eg: week sort = ??) 

Anonymous
Not applicable

I manually added a 2nd column to see if I could force a sort. Sorted week number by sort week. Sorted in different orders but still no luck. 

data example 2.JPG

Anonymous
Not applicable

can you post an excel file with the data or power bi file and I can tell you the issue quickly.

Anonymous
Not applicable

Anonymous
Not applicable

@Anonymous click on the chart and go in the visualization options in x axis, change type from continuous to categorical.

Click on the chart and go in the visualization options for the x axis ,Go to Format, X-Axis, change type from continuous to categorical.

Anonymous
Not applicable

Thanks! Now I see the sort option appear. 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors