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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bobbob123
Helper III
Helper III

column chart custom sort x-axis

Hi,

 

I have a column chart that has the following x-axis.

 

bobbob123_0-1647683224314.png

I want to arrange the x-axis of my column chart to go as follows.

 

1,2,...10,11a,11ai,11aii...11av,11b,11bi,11bii....11bv,.......11g,11gi,11gii ... 11gv, 12a ........ 20.

 

Each question after 11 has part a to g and subparts up to v. 

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

For the sorting to be dynamic you would need to create a measure using RANKX, and that needs an expression to rank by. 
Another option is to create the order in Excel, which is much more flexible for these types of tasks. You can then either use that as your table or merge with the table already loaded.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

For the sorting to be dynamic you would need to create a measure using RANKX, and that needs an expression to rank by. 
Another option is to create the order in Excel, which is much more flexible for these types of tasks. You can then either use that as your table or merge with the table already loaded.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

You need a column in the axis table which establishes the order you need.  If the values are in the right order by default, you can add an index column in Power Query. If not you will need to create the order with a conditional column in Power Query or using SWITCH in the table.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi Paul, thanks for your feedback. I am aware of that approach i.e create a new column and establish the order however I am interested in a dynamic order.

 

My questions range from 1 to 20, where 1-10 are numerical, 11-20 has parts a-g and each parts have i-v. 

Using your approach, I would have to list out all the questions i.e 1,2.....10,11,11a,1ai,....11av,11b,.....11g,.. all the way up to 20gv which is long and teidous. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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