I have a field (date_time) containing various timings (short time format) and another field (sold) containing the number of items customers has purchased.
I would like to sum the number of items sold during the day in 15 mins interval. The desired outcome will be 4:00PM:4:15PM, 10 sold; 4:16PM:4:30PM, 15 sold, and so on.
I tried to achieve it by using PARTITION in query to no avail.
Example 1:
Range: Partition([Date_Time],TimeSerial(0,0 ,0),TimeSerial( 23,59,0),TimeSe rial(0,15,0))
I encountered an error with the above - Invalid Procedure Call
Example 2:
Range: Partition(Minut e([Date_Time]),0,1440,15)
Result
Range TotalSold
0: 14 143
15: 29 128
30: 44 110
45: 59 163
In example 2, the result though was in 15 mins interval but not in the time range I wanted.
Please see the screenshots attached for the parameters I have entered in my queries.
Any help will be very much appreciated.
Thank you.
[IMGnothumb]https://bytes.com/attachment.php? attachmentid=87 25[/IMGnothumb]
I would like to sum the number of items sold during the day in 15 mins interval. The desired outcome will be 4:00PM:4:15PM, 10 sold; 4:16PM:4:30PM, 15 sold, and so on.
I tried to achieve it by using PARTITION in query to no avail.
Example 1:
Range: Partition([Date_Time],TimeSerial(0,0 ,0),TimeSerial( 23,59,0),TimeSe rial(0,15,0))
I encountered an error with the above - Invalid Procedure Call
Example 2:
Range: Partition(Minut e([Date_Time]),0,1440,15)
Result
Range TotalSold
0: 14 143
15: 29 128
30: 44 110
45: 59 163
In example 2, the result though was in 15 mins interval but not in the time range I wanted.
Please see the screenshots attached for the parameters I have entered in my queries.
Any help will be very much appreciated.
Thank you.
[IMGnothumb]https://bytes.com/attachment.php? attachmentid=87 25[/IMGnothumb]
Comment