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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
BekahLoSurdo
Resolver IV
Resolver IV

Alphanumeric Sorting in Visuals

Hi all,

I have a bar graph with x-axis values that start with numbers and/or letters. Prior to today, it has always autosorted to [A-Z], [0-9] but when I refreshed my dashboard today, it switched to [0-9], [A-Z]. I can't switch to descending because I need the values within [A-Z] and [0-9] to be ascending. Any thoughts on why this would change? If this is a common occurence I'd like to be aware so I can create "sort by" columns for all of my visuals (which will be a pain and only worth it if necessary).

 

Prior to Refresh After Refresh 
Ascending*DescendingAscendingDescending
No Due Date2 - 4 weeks0 - 2 weeksPast Due
Past Due0 - 2 weeks2 - 4 weeksNo Due Date
0 - 2 weeksPast DueNo Due Date2 - 4 weeks
2 - 4 weeksNo Due DatePast Due0 - 2 weeks


*Desired result

 

AscendDescend.PNG

Thanks!

Bekah

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

Hi,

 

This condition is beacuse you design the initial sort for X-axis before refresh like [A-Z],[0-9].

However, when you refresh it, it will show the new sort by lexicographical order like [0-9],[A-Z].

This is just the correct sort.

 

Best Regards,

Giotto Zhi

View solution in original post

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

This condition is beacuse you design the initial sort for X-axis before refresh like [A-Z],[0-9].

However, when you refresh it, it will show the new sort by lexicographical order like [0-9],[A-Z].

This is just the correct sort.

 

Best Regards,

Giotto Zhi

VasTg
Memorable Member
Memorable Member

@BekahLoSurdo 

 

Create a new column for sort order and use that column as SORT BY for "Proposal Date Range"

 

Refer to the documentation..

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

If it helps, mark it as a solution

Kudos are nice too

Connect on LinkedIn

Hi @VasTg,

As I mentioned in my post, I don't want to create a sort by as a default solution for all of my visuals on all of my dashboards unless necessary. So I'm more interested in the "why" this is happening. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.