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...
Tricky filter and/o...
 
Notifications
Clear all

Questions Tricky filter and/or formula

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Tim Rodman 4 years ago
6 Posts
4 Users
3 Reactions
1,259 Views
RSS
Michael Triffon
Posts: 23
 Michael Triffon
Topic starter
April 13, 2021 10:38 am
(@michaeltriffon)
Eminent Member
Joined: 6 years ago

I wrote a GI to display the last sale to customers but need to filter it so that it only shows customers who haven't bought anything in 90 days.

The path I took was looking at last 90 days with 0 total sale and eliminating those with this formula:

=IIf( [SOOrder.OrderDate]>=(DateAdd(Today(), 'd', -90)) and [SOOrder.OrderTotal]=0, [SOOrder.OrderDate], Null)

The issue is it only reports clients with zero sales in their entire history.  It does not seem to restrict it to clients with 0 sales in last 3 months.

Can someone suggest a better approach or formula?

GI is attached, please note that I tried conditions but disabled them and went with a filter in the results field.

 

Last Customer Activity.zip

Thanks!


5 Replies
Jeffrey Patch
Posts: 38
 Jeffrey Patch
April 18, 2021 9:32 am
(@jeffrey-patch)
Trusted Member
Joined: 6 years ago
LEV TEST LAST Sales Order.xml

See the attached xml built using 20.115.0039.  Simply grouping the sales orders by customers and aggragting the OrderDate using the Max (OrderDate) and then filtering the resulting GI

 

image

 

 


Reply
Michael Triffon
 Michael Triffon
(@michaeltriffon)
Joined: 6 years ago

Eminent Member
Posts: 23
April 19, 2021 9:59 am
Reply toJeffrey PatchJeffrey Patch

@jeffrey-patch Thank you for giving it a shot but that is exactly what I did. The problem is I need to determine who has not purchased anything in the last 90 days.

What I am struggling with is filtering out all customers who has not purchased anything in last 90 days.

 

Any ideas?


Reply
Michael Triffon
Posts: 23
 Michael Triffon
Topic starter
April 20, 2021 4:13 pm
(@michaeltriffon)
Eminent Member
Joined: 6 years ago

I figured I'd come back and post the solution. I had NO idea you could enter a formula in the filters. I tried and it worked.

image

Reply
Royce Lithgo and Tim Rodman reacted
Royce Lithgo
Posts: 557
 Royce Lithgo
April 20, 2021 9:15 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Thanks for posting that @michaeltriffon. I had a go at this yesterday but couldn't get it to work. I also didn't realise you could do this, nice find!


Reply
Tim Rodman reacted
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
May 2, 2021 10:23 pm
(@timrodman)
Famed Member
Joined: 10 years ago

I had a similar experience here:

https://www.augforums.com/forums/acumatica-generic-inquiries/using-parameters-to-filter-aggregate-results


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 36 Online
  • 2,338 Members
Our newest member: Shoaib Shafquat
Latest Post: Pick List report suddenly not splitting on Shipment
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.

‹›×

    ‹›×