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 Generic I...
Last Order Date
 
Notifications
Clear all

Questions Last Order Date

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by WildlifeTracker 5 years ago
5 Posts
2 Users
3 Reactions
2,651 Views
RSS
WildlifeTracker
Posts: 14
 WildlifeTracker
Topic starter
January 12, 2021 10:31 am
(@wildlifetracker)
Eminent Member
Joined: 5 years ago

Is there a way to identify in Acumatica the "last order date" or "most recent order date?"

I would like to create a report that would provide a customer average timeframe between sales orders as well as the timeframe from "todays date" and their last order.

The datediff function only seems to be useful when you can target the specific dates.

Thank you!


4 Replies
Dianne A
Posts: 23
 Dianne A
January 12, 2021 10:36 am
(@dianne-a)
Eminent Member
Joined: 6 years ago

What if you group orders by customer and then use MAX(OrderDate)? 


Reply
WildlifeTracker reacted
WildlifeTracker
 WildlifeTracker
(@wildlifetracker)
Joined: 5 years ago

Eminent Member
Posts: 14
January 12, 2021 11:36 am
Reply toDianne ADianne A

@dianne-a That does tell me the last order date, thank you! Though, I don't think I could do a datediff between that number and today's date?

I'm also still struggling with my goal of reporting avg length of time between orders. These seem like a reasonable metric you would want to know.

I guess this is another case where it would be helpful if Acumatica had a SQL View tool.

Thanks for the reply!


Reply
Dianne A
Posts: 23
 Dianne A
January 12, 2021 12:26 pm
(@dianne-a)
Eminent Member
Joined: 6 years ago

My test case is super simple so it may still not solve your problem, but I was able to use MAX() in a parameter to the DateDiff() function with expected results.

image

I don't have any quick ideas for average length of time between orders by customer within a generic inquiry. 


Reply
WildlifeTracker reacted
WildlifeTracker
 WildlifeTracker
(@wildlifetracker)
Joined: 5 years ago

Eminent Member
Posts: 14
January 12, 2021 2:51 pm
Reply toDianne ADianne A

@dianne-a Thank you so much Dianne! That does does exactly what I need.

For future viewers, the formula is actually switched. Should be...

=DateDiff('d', MAX([SOOrder.OrderDate]), Today())

I'll sit on the AVG for now. Thanks again!


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 28 Online
  • 2,411 Members
Our newest member: thollings
Latest Post: Generic inquiry with information from Audit history(CT301000)
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.

‹›×

    ‹›×