Solved

Date Filter in a Generic Inquiry

  • 17 July 2023
  • 3 replies
  • 653 views

Is there a way to create a filter on GI to show the last seven days, last month, and to forecast next month? I know there is the @month and the @today parameter but couldn’t find a way to add days to it. I tried @today-7 and it does not filter the last seven days. 

icon

Best answer by davidnavasardyan09 17 July 2023, 20:16

View original

3 replies

Userlevel 4
Badge +1

You can use the DateAdd formula with a negative interval, e.g. =DateAdd(Today(),’d’,-7) for a week ago or =DateAdd(Today(),’m’,-1) for a month ago.

Userlevel 5
Badge +1

Hello @jzhu 

In Acumatica, creating a filter to show data for the last seven days, last month, or to forecast next month can be done by utilizing relative date keywords in combination with the appropriate operator in the filter condition.

However, to create more complex relative date filters (like "the last seven days"), you'll need to set up a pair of conditions to form a date range.

Here's how you can do it:

  1. Last seven days: To get the data for the last seven days, create two conditions:

    • Condition 1: [YourDateField], Greater Or Equal, @Today-7.
    • Condition 2: [YourDateField], Less Than, @Today.
  2. Last Month: If you want to get the data for the previous month, use:

    • Condition 1: [YourDateField], Greater Or Equal, @Month-1.
    • Condition 2: [YourDateField], Less Than, @Month.
  3. Next Month Forecast: If you want to forecast the next month, use:

    • Condition 1: [YourDateField], Greater Or Equal, @Month+1.
    • Condition 2: [YourDateField], Less Than, @Month+2.

The @Today-7 and @Month-1 syntax you mentioned works as expected in my experience. If this isn't the case, please verify that you have the latest updates or patches for your version of Acumatica.

Please note that these filters will work dynamically. Every time you run the GI, it will calculate the dates based on the current date (for @Today) or the current month (for @Month).

Userlevel 2
Badge

These filter conditions are not working for widget filter settings 

Hope I am doing it correctly, if not please correct me. Thanks.

 

 

Below is the error screenshot…

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved