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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Remove Sort from Graphs

When I sort by age group on the graphs it does not filter correctly, it puts ages 5-9 in the middle and not right after 0-4. I would like to turn off the sort on the graph so it just appears as the data appears in the table. Can this be done?

 

image.png

 

 

 

1 ACCEPTED SOLUTION
v-yinliw-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want to sort the X axis, you need to have reference columns.

Because your current 5-9 is text, you can't sort it.

In fact, the x-axis can be sorted correctly by adding indexed columns.

You can try this method:

This is my test data:

vyinliwmsft_0-1665729664165.png

When I use this table to sort by year column, I got the result below:

vyinliwmsft_1-1665729729394.png

It is the same quertion with you.

So I add an index column in Power Query:

vyinliwmsft_2-1665729801284.png

And then I got the table like this:

vyinliwmsft_3-1665729832578.png

Then you can choose the year column and select the Sort by Column:

vyinliwmsft_5-1665729949605.png

 

vyinliwmsft_4-1665729917641.png

Finally you can sort it correctly:

vyinliwmsft_6-1665729996364.png

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yinliw-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want to sort the X axis, you need to have reference columns.

Because your current 5-9 is text, you can't sort it.

In fact, the x-axis can be sorted correctly by adding indexed columns.

You can try this method:

This is my test data:

vyinliwmsft_0-1665729664165.png

When I use this table to sort by year column, I got the result below:

vyinliwmsft_1-1665729729394.png

It is the same quertion with you.

So I add an index column in Power Query:

vyinliwmsft_2-1665729801284.png

And then I got the table like this:

vyinliwmsft_3-1665729832578.png

Then you can choose the year column and select the Sort by Column:

vyinliwmsft_5-1665729949605.png

 

vyinliwmsft_4-1665729917641.png

Finally you can sort it correctly:

vyinliwmsft_6-1665729996364.png

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.