AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • 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 Analytica...
Shifting Year Back ...
 
Notifications
Clear all

Questions Shifting Year Back in Title

 
Acumatica Analytical Report Manager (Financial Report Writer)
Last Post by Amy Smith 6 years ago
4 Posts
3 Users
2 Reactions
1,932 Views
RSS
Posts: 3
 Amy Smith
Topic starter
November 20, 2019 2:35 pm
(@amy-smith)
Member
Joined: 6 years ago

I'm working on writing a comparative report.  We have an April 30th year-end, so I like to use written out months and years on reports (rather than period).  The formula below shows in the report correctly (i.e. November 2019).

=Format( '{0: MMMM yyyy}',Report.GetPeriodEndDate(@StartPeriod) )

 

How do I write it to shift the year back one for the prior year comparative column (i.e. I am trying to show November 2018 data).  I have tried adding a -1 but I get an error message of "The expression contains a call of an undefined function".

Help and thank you!

 

 


3 Replies
Donna Boes
Posts: 27
 Donna Boes
December 6, 2019 1:00 pm
(@bodonna)
Eminent Member
Joined: 8 years ago

Try this

=Format( '{0: MMM d, yy}', DateAdd( Report.GetPeriodEndDate(@StartPeriod), 'm', 1))

 


Reply
John Doe Updated
Posts: 3193
 John Doe Updated
Admin
December 26, 2019 3:45 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Try this for going back one year:

=Format( '{0: MMM d, yy}', DateAdd( Report.GetPeriodEndDate(@StartPeriod), 'y', -1))

Reply
Gustavo Carrasquillo reacted
 Amy Smith
(@amy-smith)
Joined: 6 years ago

Member
Posts: 3
January 2, 2020 11:32 am
Reply toJohn Doe UpdatedJohn Doe Updated

@timrodman

Thank you!  This worked!


Reply
John Doe Updated reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 34 Online
  • 2,410 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
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 © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×