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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Age Bucket Sort Issue

Hi All,

 

I have Age column. I created a Age bucket column wwith the help of Conditional column in Query Editor. When i tried to sort the Age Bucket column with Age column it is throwing error. For Age Bucket when i keep that in slicer i want 0-50 to show at top followed by 51-100 annd then >100 but now the problem is >100 is showing at top.

Age Sort.PNG

Thanks in Advance

1 ACCEPTED SOLUTION
rocky09
Solution Sage
Solution Sage

You can create a brand new table "Sequences" with these values

AgeSeq
0-501
51-1002
>1003

Now, goto relationships and then create a relationship with your existing tables Age column with newly created Age column.
Then, go to your Old table use the below Dax.

seq = related([Sequences(seq)]

 

 

Now, click on the Age column in the old table, then try Sort.

View solution in original post

3 REPLIES 3
rocky09
Solution Sage
Solution Sage

You can create a brand new table "Sequences" with these values

AgeSeq
0-501
51-1002
>1003

Now, goto relationships and then create a relationship with your existing tables Age column with newly created Age column.
Then, go to your Old table use the below Dax.

seq = related([Sequences(seq)]

 

 

Now, click on the Age column in the old table, then try Sort.

Anonymous
Not applicable

Yes!! it worked.

 

Thanks!!

I have done that, but the sort is not working, still sorting by letter/Age (in this example)

 

I have this values: 

Current

1-30

31-60

61-90

91-180

181-360

360-720

720+

 

I have created another sheet in my source to add a order value (1 to 8), but when I relate them and go to the table and request to sort by the order value, it doesn't do anything, what else can I try?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.