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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.