cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Patron
Post Patron

Dax function to sort by number

Dear all, 

 

I created a table, I want below questions to be sorted by Q1-Q10, not by below order, any one can provide soem detail solution? Thank you so much.

QQQ.JPG

1 ACCEPTED SOLUTION
Super User III
Super User III

@xiumi_hou couple of suggestoin comes in mind

 

- add a zero in front of single digit Q1 will be Q01 and so on and it will sort out by itself

- if you still want to show Q1, Q2 with single digit, add another column with 0 padded like Q01 and sort your column with new column in modelling tab and then you will see single digit number are sorted correctly.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

1 REPLY 1
Super User III
Super User III

@xiumi_hou couple of suggestoin comes in mind

 

- add a zero in front of single digit Q1 will be Q01 and so on and it will sort out by itself

- if you still want to show Q1, Q2 with single digit, add another column with 0 padded like Q01 and sort your column with new column in modelling tab and then you will see single digit number are sorted correctly.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors