On a generic enquiry, how do i get the number/$ sum of invoices etc between to dates?
I have seen the threads as to date differnce calculations, but they all seem to be related to getting the amount of days bewteen two dates. DateAdd( date, interval, number ) etc
I want to get for example how much a customer spent in 2021 in a column.
Page 1 / 1
Hi @dan_00 ,
You could create a formula field on the Results tab similar to this:
In the Conditions, Add Docdate between Fromdate] (in the Value 1 box) and ToDate] (in the Value2 box)
In the results grid,
Add the CustomreID
Add the OrigDocumentTotal. On this row, in the Aggregate Function column select SUM.
Hi @dan_00 ,
The method that @ChandraM describes will give you totals for a date range. If you need to have columns for multiple periods such as different years then you can use a formula like the one that I shared.
Hope this helps!
Laura
Hi @dan_00 Please find the details with Screenshots to guide you.
Create a generic Inquiry as below:
Add the ARInvoices Table
Add Parameters FromDate and ToDate
In the Conditions, Add Docdate between eFromdate] (in the Value 1 box) and nToDate] (in the Value2 box)
Under Grouping adding CustomierID
In the results grid,
Add the CustomreID
Add the OrigDocumentTotal. On this row, in the Aggregate Function column select SUM.
@dan_00 Here is the results of the Generic Inquiry.
@dan_00 Please find the attached Generic Inquiry that you can import on your Generic Inquiry Screen.
Please verify and let me know your feedback.
Thanks
Chandra
Hi @dan_00 ,
You could create a formula field on the Results tab similar to this: