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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
aiyosap
Helper II
Helper II

Why my bar chart sorting for aging bucket not working?

Hi guru,

 

I do not know how to resolve this problem and hope you can provides some guidance.

The following is my aging bucket barchart and you will notice the sorting is incorrect as "3-30 days" bucket should be next to "0-3 days" bucket.

barchart sorting.PNG

 

 

 

 

 

 

 

 

 

 

The barchart bucket sorting is based on File Date columen.

Sorted by.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I tried to sort by other columns, but i got the following error message.

error message.PNG

 

Hope you can shed some light. Thank you.

 

Regards

Aiyo

1 ACCEPTED SOLUTION

Hi all, 

 

I found the solution ...

This is because I created a calculated column referencing another calculated column. This become the circulated issue not allow in Power BI.

I have using the same method but referencing a non calculated column. 

It works.

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@aiyosap 
Create another column with the same logic as Aging Bucket but instead of generating the output as '0-30, 30-60 and so on give it a number like 0,1,2 and you can use this column as you sort by column.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi Fowmy,

 

I had tried the way you mentioned but I encountered the following error message:

Error Message 2.PNG

 

 

 

 

 

 

 

 

 

The "Age Sort Ind" field are using:

If Age Range = "0-3 Days", 0,

   if Age Range = "3-30 Days", 3,

      if Age Range = "30-60 Days", 30, 60

 

The index field populates with correct value.

I have also tried changing the data type (i.e. text and whole number) to the "age sort ind" field, but when come to sort the "age range" field by this new created field, i hits the above error message.

 

Do you know why?

 

Thanks,

Aiyo

Hi all, 

 

I found the solution ...

This is because I created a calculated column referencing another calculated column. This become the circulated issue not allow in Power BI.

I have using the same method but referencing a non calculated column. 

It works.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors