Hi All,
I'm trying (all freaking day) to get the following done without very much luck..
By now it seems pretty much impossible to me, but perhaps someone is able to help me...
I have a number of records, each record got a field named "TotalOrder" which gives me the total price of this specific record.
I want to calculate the sum of all the records with the same date.
After getting the sum of all the records grouped by date I want to compare this to the minimum price per day.
So let's say the sum of all (10) the records with the same date is 100,- and the minimum is 90,- nothing happens and my query field "minimum" stays empty or 0
But if the total of all (10) records with the same date is 80,- and the minimum is 90,- I want the query field "minimum" have the value of 90,- divided by the number (in this case 10) records.