Skip to main content
Answer

How can I only display second segment of the subaccount in the report?

  • April 11, 2025
  • 4 replies
  • 56 views

Forum|alt.badge.img

Hello all,

How can I display only a second segment of subaccount (AAA-BBB) in my report?
So as per the above segment I only want to display BBB in my report. Maybe I would be need to apply formatting condition?

 

Thanks.

Best answer by nhatnghetinh

Hi ​@Harry 

That's right. You use the Left( str, length ) & Right( str, length ) functions to get the left or right character strings from the position you want to get.

 

Best Regards,

NNT

4 replies

nhatnghetinh
Captain II
Forum|alt.badge.img+11
  • Captain II
  • April 11, 2025

Hi ​@Harry 

Please use the Right( str, length ) function. For example: = Right( [GLTran.SubID], 3 )

 

Best Regards,

NNT


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • April 11, 2025

Hey ​@nhatnghetinh , thanks for your prompt response. Similarly I also have project tasks with 2 divisions/segments. The first segment - 10 chars & the second - 4 chars. So in order to print only 1st segment it would be: Left([PMTask.TaskCD],10)?


nhatnghetinh
Captain II
Forum|alt.badge.img+11
  • Captain II
  • Answer
  • April 11, 2025

Hi ​@Harry 

That's right. You use the Left( str, length ) & Right( str, length ) functions to get the left or right character strings from the position you want to get.

 

Best Regards,

NNT


saifalisabri
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • April 11, 2025

To display only the second segment of the SubAccount in an Acumatica report:

  1. Modify the Report Data Source:
    Use the SplitSegment function in the report’s field expression:

Copy

=SplitSegment(SubAccountID, 1)

Replace SubAccountID with your actual field name.

  1. Adjust the Index:
    • Segments are zero-indexed (e.g., SplitSegment(SubAccountID, 1) returns the second segment).
    • Verify the delimiter and segment count in SubAccount Settings (GL > Setup > Segments).

This extracts the desired segment dynamically based on your configuration.