Skip to main content
Answer

GI Sort Order

  • August 1, 2024
  • 4 replies
  • 111 views

I have custom data fields in my results grid that categorize my AR data into different timeframes. 

 

I want to sort my data by the “Overdue total” data field, but it does not appear as an option in the sort order dropdown. I’ve tried to copy and paste the same formula into the sort order tab, but the data does not sort correctly. 

I have no idea what step I’m missing. 

Best answer by andriitkachenko

Hi @ElvinT 

I’ve created a quick GI with some data I had nearby. The sorting formula makes no sense, but it shows that it clearly supports formulas:

This pencil icon means the field supports Formulas
Sorting logic. Formula: Day from Date Field in DAC - Today’s Day
Result is sorted according to the field

So I’d suggest looking at your formula. You can troubleshoot it by decomposing it into parts, which you can show as a separate column. And then visually check if there are any problems with showing the value for it.

4 replies

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • August 1, 2024

@ElvinT I’m not really sure the GI sort field is meant to be that robust, so it may not be able to do that function.

A couple options might be to create a SQL view of this output and then use this in the GI, or it might actually work better as a report.

Check and see if it sorts correctly ungrouped


  • Author
  • Freshman I
  • August 1, 2024

How would i go about creating a SQL view?


nhatnghetinh
Captain II
Forum|alt.badge.img+11
  • Captain II
  • August 2, 2024

Hi @ElvinT 

Please refer to the post below.

https://www.acumatica.com/blog/technical-tuesday-report-from-sql-view/

 

Best Regards,

NNT

 


andriitkachenko
Jr Varsity III
Forum|alt.badge.img+6

Hi @ElvinT 

I’ve created a quick GI with some data I had nearby. The sorting formula makes no sense, but it shows that it clearly supports formulas:

This pencil icon means the field supports Formulas
Sorting logic. Formula: Day from Date Field in DAC - Today’s Day
Result is sorted according to the field

So I’d suggest looking at your formula. You can troubleshoot it by decomposing it into parts, which you can show as a separate column. And then visually check if there are any problems with showing the value for it.