Skip to main content
Solved

How to numerically sort subaccounts on ARM report

  • September 15, 2023
  • 3 replies
  • 147 views

I have report where I note the account and it’s balance on one row, expand by subaccount on the next 

row set example

This is working great for obtaining the subaccount activity that makes up the account balance. However when printing the report, I would like to sort the subaccount string numerically. Currently, segment one is sorting largest to smallest while segment 2 is smallest to largest. Does anyone know of a custom expression for either the column set or row set to be able to sort the string smallest to largest?

 

example of report output (exported to Excel), same behavior in the Acumatica screen and when exporting to PDF
​​​​​

Thanks for any and all help on this!

Best answer by Laura02

Hello,

I think @marilizevanzyl is close except for 2 changes

  1. To Sort smallest to largest, you want to sort Ascending, not Descending.  (Remove D from formula.)
  2. Your row number where the subaccounts are expanded is 1145.
  3. Subaccount is located in the first column, Description column of the report, yes? if so, The first column on the report is column A and therefore your Sort formula is =SORT(‘1145’,’1145’,’A’)

Laura

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img

Have you tried using the Sort() Function on the Row Set, in your example you will use SORT(‘0300’,’0345’,’B’):

 


Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • Answer
  • September 19, 2023

Hello,

I think @marilizevanzyl is close except for 2 changes

  1. To Sort smallest to largest, you want to sort Ascending, not Descending.  (Remove D from formula.)
  2. Your row number where the subaccounts are expanded is 1145.
  3. Subaccount is located in the first column, Description column of the report, yes? if so, The first column on the report is column A and therefore your Sort formula is =SORT(‘1145’,’1145’,’A’)

Laura


  • Author
  • Freshman I
  • 4 replies
  • September 19, 2023

Thank you both!  Yes, Laura, I simplified down to your formula for Ascending order and this works beautifully. I looked at D also but that is descending and I needed Ascending. And, sorted on Column A because that is the column the accounts, subaccounts and description live in. Here is the added row for this example.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings