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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
CC852
Frequent Visitor

How to sort Grouped items

I have managed to combine some prices but now they are not in the order I would like:

CC852_1-1707929865015.png

 

I would like them to display as $1-$3 then $5-$10 then $20+

 

How can I sort the grouped items manually?

 

 

2 ACCEPTED SOLUTIONS

You can add a new table to do it or add a new column in your current and categorise your price ranges.
If you share your file I can help you with this





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

Thanks, I got more understanding with the break down of steps and then found a video that was similar to your descriptions! https://www.youtube.com/watch?v=4xapOrfLvbg

View solution in original post

5 REPLIES 5
Daniel29195
Super User
Super User

@CC852 

well, this should be ordered automatically . 

if it not , 

you can create the groupings in power query,

then create a power query conditional column where you specify the index for each group , 

 

at then end , in power bi , 

use the sortby column : 

Daniel29195_0-1707930503172.png

and sort the group column by the index created . 

 

 

also if possible , you can share your file so i can take a look at it . 

 

 

let me know if this works for you .

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

_AAndrade
Super User
Super User

Create a ID for each range of price that you defined, and after order your column by the ID that you created.
For example:
ID | RangeName
1  | $1-$3
2  | $5-$10
3 | $20+

After use  "Sort by Column" and choose "ID"

_AAndrade_0-1707930519079.png

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Do I need to create a new table for the prices and the desired groups first?

You can add a new table to do it or add a new column in your current and categorise your price ranges.
If you share your file I can help you with this





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Thanks, I got more understanding with the break down of steps and then found a video that was similar to your descriptions! https://www.youtube.com/watch?v=4xapOrfLvbg

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.