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 Analytica...
Formula to print Mo...
 
Notifications
Clear all

Questions Formula to print Month description

 
Acumatica Analytical Report Manager (Financial Report Writer)
Last Post by Ishan Desai 8 years ago
6 Posts
3 Users
1 Reactions
3,594 Views
RSS
Posts: 6
 Ishan Desai
Topic starter
August 21, 2018 5:38 am
(@ishan-desai)
Member
Joined: 8 years ago

Hi Tim,

I need a formula to print description of "Previous month". (Please check attached file "Month Calculation")

I can print current month and Year with the help of below formula:

= Report.GetPeriodDescription(@StartPeriod ) +'-' +Report.FormatYear(@StartPeriod)  (O/p : January 2018)  

but, I want to print previous month ( I tried same formula by adding -1...which is not working. After that I tried below formula which gives me output in numeric format

=Format( '{0: MMM - yyyy}', Report.FormatPeriod(@StartPeriod, -1) )  (O/P: 12-2017 )  [O/P should be  Dec - 2017 or December 2017]

please give me some suggestion...

Thanks.


5 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
August 21, 2018 6:17 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Try something like this:

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


Reply
Posts: 6
 Ishan Desai
Topic starter
August 21, 2018 11:11 pm
(@ishan-desai)
Member
Joined: 8 years ago

Thanks Royce for your immediate reply.

I tried this formula but anyhow value is not converting into the given format Format( '{0: MMM yyyy}'). *Attcahed file :Month formula 1 


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
August 22, 2018 12:00 am
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Ishan,

It's working in our reports, the only difference is for our reports the -1 is a 1, so it list months from current on wards.

Example:

These were generated with these formulas:

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

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

=Format( '{0: MMM yyyy}', DateAdd( Report.GetPeriodEndDate(@StartPeriod), 'm', 2))

etc.


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
August 23, 2018 7:18 am
(@timrodman)
Famed Member
Joined: 11 years ago

Ishan's screenshots weren't showing so I added them to his posts.

I usually use the same formula that Royce shared and it works fine for me too. Maybe try removing your commented line and put the Format function directly after the = to see if that makes a difference for some reason.


Reply
Posts: 6
 Ishan Desai
Topic starter
August 28, 2018 8:56 pm
(@ishan-desai)
Member
Joined: 8 years ago

Hi Royce and Tim,

Yes...it's working .Thanks a lot guys.


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,532 Topics
  • 11 K Posts
  • 106 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.

‹›×

    ‹›×