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

Sorting the axis

I have the following visual:

 

Sorting Doubt.PNG 

The axis is in a really messy order whether i sort is ascending or descending.. is there a way to sort it such that it is in the order:

 

<60

>60

>90

>120

>180

 

The axis is a column called Aging that is created as follows:

 

Aging = SWITCH(TRUE(), REQUISITION[Age Days]<60, "<60", REQUISITION[Age Days]>60 && REQUISITION[Age Days]<=90, ">60", REQUISITION[Age Days]>90 && REQUISITION[Age Days]<=120, ">90", REQUISITION[Age Days]>121 && REQUISITION[Age Days]<=180, ">120", REQUISITION[Age Days]>180, ">180")
 
Any help on this? Thank you in advance!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

create another custom column and set values accordingly and sort by custom column

like this......

when value is        custom column

<60                                 1

>60                                 2

>90                                 3 

>120                               4 

>180                               5

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

create another custom column and set values accordingly and sort by custom column

like this......

when value is        custom column

<60                                 1

>60                                 2

>90                                 3 

>120                               4 

>180                               5

Anonymous
Not applicable

@Anonymous 

 

Hey I created a new column as follows:

 

Aging Sort = SWITCH(TRUE(), REQUISITION[Aging]="<60",1,REQUISITION[Aging]=">60",2, REQUISITION[Aging]=">90",3,REQUISITION[Aging]=">120",4,REQUISITION[Aging]=">180",5)
But when I try to sort Aging with this now it throws the following error:
Sorting Doubt.PNG

When I try to Sort Aging by this column  it shows this:

Sorting Doubt. 2 PNG.PNG

So there is no change

Anonymous
Not applicable

remove sorting on Aging column if there is any

Anonymous
Not applicable

@Anonymous  There was no other sorting in it. I calculated the exact same stuff in the back end and then tried the sort in the front end and it worked.

 

But no clue y it did not work in the front end directly. 

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.