Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
This is a regular table in Power BI desktop. How do I order it so that it can appear like so
Under 21 years old
between 22 and 25 years of age
between 26 and 30 years of age
Solved! Go to Solution.
@nniphadk
You need to create a custom sort order column for it.
Please follow the approach suggested here: https://community.fabric.microsoft.com/t5/Desktop/Sorting-Calculated-Column/m-p/3132467
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
Hi ,
Thanks for the solution @tharunkumarRTK provided and i want to offer some more information for user to refer to.
hello @nniphadk , based on your description, you can refer to the following solution.
Sample data
You can create a measure
Measure = int(MID(MAX('Table'[Age Group]),SEARCH(" ",MAX('Table'[Age Group]),,BLANK())+1,2))
Then put the measure to the filter and sort the measure ascending.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi ,
Thanks for the solution @tharunkumarRTK provided and i want to offer some more information for user to refer to.
hello @nniphadk , based on your description, you can refer to the following solution.
Sample data
You can create a measure
Measure = int(MID(MAX('Table'[Age Group]),SEARCH(" ",MAX('Table'[Age Group]),,BLANK())+1,2))
Then put the measure to the filter and sort the measure ascending.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@nniphadk
You need to create a custom sort order column for it.
Please follow the approach suggested here: https://community.fabric.microsoft.com/t5/Desktop/Sorting-Calculated-Column/m-p/3132467
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |