AUGForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Course
  • Consulting
  • Login
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

  • Overview
  • Member List
  • All-Stars
  • Stats
  • Recent Posts
  • Help
Forums
AUG Forums
Acumatica Generic I...
Tricky filter and/o...
 
Notifications
Clear all

In order to allow me to focus on Consulting (click here) and Courses (click here), I continue to review all posts here in the Forums, but, in general, I'm only personally responding to posts that I mark as #AcumaticaTnT (click here). For Questions (click here), others may respond, or you can post over at Community.Acumatica.com (click here).
Sincerely,
Tim Rodman

Questions Tricky filter and/or formula

Acumatica Generic Inquiries & Pivot Tables
Last Post by Tim Rodman 2 years ago
6 Posts
4 Users
3 Likes
475 Views
RSS
Michael Triffon
Posts: 22
 Michael Triffon
Topic starter
April 13, 2021 10:38 am
(@michaeltriffon)
Member
Joined: 3 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: 32
 Jeffrey Patch
April 18, 2021 9:32 am
(@jeffrey-patch)
Member
Joined: 3 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: 3 years ago

Member
Posts: 22
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: 22
 Michael Triffon
Topic starter
April 20, 2021 4:13 pm
(@michaeltriffon)
Member
Joined: 3 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: 552
 Royce Lithgo
April 20, 2021 9:15 pm
(@roycelithgo)
Member
Joined: 3 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: 2969
 Tim Rodman
Admin
May 2, 2021 10:23 pm
(@timrodman)
Member
Joined: 8 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
  • 11 Forums
  • 2,268 Topics
  • 9,982 Posts
  • 0 Online
  • 1,834 Members
Our newest member: Derek Wong
Latest Post: Change the number of rows in the check remittance field
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 © 2023 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×