Re: Need some tips on query generating averages on time series data
From: <ecotaj_at_gmail.com>
Date: Thu, 24 Oct 2013 08:03:46 -0700 (PDT)
Message-ID: <834c2545-0309-4616-ab29-4a7346d750f4_at_googlegroups.com>
Date: Thu, 24 Oct 2013 08:03:46 -0700 (PDT)
Message-ID: <834c2545-0309-4616-ab29-4a7346d750f4_at_googlegroups.com>
Lennart:
What OLAP functions? I don't see any in your reply or in the thread.
How did I get 109.7
How did I get 21940?
- by subtracting the buy and sell time for 200 shares (rows 4 and 8 as these
match up by quantity and direction (one is buy and the other is sell).
So, the calc here is 12678 - 12568.3.
- by multiplying 109.7 by 200. This is the weighted hold time. At the end I