AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Sum of Report Colum...
 
Notifications
Clear all

Questions Sum of Report Column

 
Acumatica Report Designer
Last Post by Tim Rodman 7 years ago
4 Posts
2 Users
0 Reactions
5,060 Views
RSS
Daniel Lehn
Posts: 21
 Daniel Lehn
Topic starter
March 20, 2019 5:29 pm
(@daniel-lehn)
Member
Joined: 8 years ago

Hello, I'm trying to sum some values in Report Designer, and am not sure how to proceed. Any suggestions are appreciated.

I recently built a report that outputs the chart of accounts row by row, and the ending balance of each account to the right of each account number, in either the debit or credit column. The ending balance for each account is displayed as either a debit or credit, depending on the account type and amount +/-. I built in the logic for different account types to display on the other side if they are negative, so an asset account with positive balance is a debit balance, but a negative balance displays on the credit side, etc.

The trick that I need help thinking around is how to arrive at the sum of these amounts. I've looked at the sum formulas of other system-standard reports with no real flash of insight. Okay, with no flicker of insight -- let's be realistic.

For background information, to reach the debit or credit amounts that print on each row of this report for the given account, here's the formula I used on the debit side:

=SWITCH(

([Account.Type] = 'A' Or [Account.Type] = 'E') and [AHLast.FinYtdBalance] > 0,
[AHLast.FinYtdBalance],

([Account.Type] = 'L' Or [Account.Type] = 'I') and [AHLast.FinYtdBalance] < 0,
-[AHLast.FinYtdBalance],

)

The credit side formula just swaps the I and L for A and E, and vice versa.

If you have any suggestions for how I might add these columns I would appreciate it. 

Thanks,
Daniel


3 Replies
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
March 30, 2019 11:29 am
(@timrodman)
Famed Member
Joined: 10 years ago

Hi Daniel,

How is this different from the out-of-the-box Trial Balance Summary (GL632000) report?


Reply
Daniel Lehn
Posts: 21
 Daniel Lehn
Topic starter
April 1, 2019 10:04 am
(@daniel-lehn)
Member
Joined: 8 years ago

Hi Tim,

The report I'm creating displays ending balances for each account. There are two columns for displaying the ending balances on this report, debit and credit. The values displayed in either of these columns is always a positive number.

The report Trial Balance Summary (GL632000) displays the ending balance for each account as well, but just in one column.

Because I have to formulate the ending balance on the basis of a positive debit or credit (depending on the account type), this adds a wrinkle for arriving at the total.

I attached the report file that I'm working with. Thanks for taking a look! I'm not sure if this is possible, but any insight is appreciated.

GL632010.rpx


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
April 25, 2019 10:24 pm
(@timrodman)
Famed Member
Joined: 10 years ago

What we really need in Report Designer is the ability to reference fields in the calculations of other fields like you can do in Excel. But that functionality doesn't exist as far as I know.

I would try just wrapping your whole SWITCH statement with Sum to see if you get lucky. But you'll have to change every step of your SWITCH statement to return numbers. Currently you are returning text in some of the steps.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,530 Topics
  • 11 K Posts
  • 24 Online
  • 2,418 Members
Our newest member: Chad Treadwell
Latest Post: Negative/Credit Inventory Value?
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×