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

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

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!.

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors