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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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