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...
Aggregating for YTD...
 
Notifications
Clear all

Questions Aggregating for YTD and ITD

 
Acumatica Report Designer
Last Post by Tim Rodman 8 years ago
2 Posts
2 Users
0 Reactions
2,902 Views
RSS
Posts: 20
 egates17
Topic starter
April 23, 2018 5:05 pm
(@egates17)
Member
Joined: 9 years ago

I’m have seen this used,  but am not comfortable using this calc to accumulate YTD costs in Report Designer:

 =sum(iif([FinPeriod.FinPeriodID] <= [@FinPeriod] and [FinPeriod.FinYear] = right([@FinPeriod],4),[Cost.TotalTargetAmount],0))

 It does not give consistent results,  which I believe is due to the <= acting on a string. Looking for opinions on the best way to aggregate YTD and ITD values in a report designer report?


1 Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
April 25, 2018 10:05 pm
(@timrodman)
Famed Member
Joined: 11 years ago

I would be curious to see what kind of SQL this gets turned into when the report runs. You can see this by going to Tools -> Trace after the report is run.

I didn't remember that Sum could act on this kind of formula. I thought that it could only act on values that exist in the Detail section.

If text is indeed the only problem, you could use the CInt() formula to turn the text into integers.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,532 Topics
  • 11 K Posts
  • 9 Online
  • 2,418 Members
Our newest member: Chad Treadwell
Latest Post: Limited or no support from Acumatica?
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.

‹›×

    ‹›×