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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
anubb688
Frequent Visitor

Row Header Sort via Index Doesn't Work as Expected

I made a conditional column, hoping I could sort 'currentSalesCycle' based on indices.  However, as picture shown below. I sorted 'Index' in an ASC order, and it's counting weird. What am I missing? Please advise.

anubb688_0-1635962157535.png

 

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @anubb688 
the sort is alphanumeric. To correct it, you have to convert the column to a number type before sorting.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

1 REPLY 1
ImkeF
Community Champion
Community Champion

Hi @anubb688 
the sort is alphanumeric. To correct it, you have to convert the column to a number type before sorting.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors