我已經與由日期和產品名稱的一些量和間隔以秒一個簡單的表。樞軸式計算:SUM(字段1)/ AVG(字段2)
Month | Product | Amount | Interval in sec
------------------------------------------
05-'12| Prod A | 10 | 5
05-'12| Prod A | 3 | 5
05-'12| Prod B | 4 | 5
05-'12| Prod C | 13 | 5
05-'12| Prod C | 5 | 5
從這個表我已經月和產品得到的數據透視表SUM(金額),AVERAGE(時間間隔以秒爲單位)。
Month | Product | SUM of Amount | AVG of Interval in sec
--------------------------------------------------------
05-'12| Prod A | 13 | 5
05-'12| Prod B | 4 | 5
05-'12| Prod C | 18 | 5
到目前爲止好。現在我想向我的數據透視表添加額外的列,並以秒爲單位給出了間隔的金額/ AVG總和的結果(秒)。
添加一個計算值=SUM(Amount)/AVERAGE(Interval)
不給我正確的價值觀。 Excel中給了我:
Month | Product | SUM of Amount | AVG of Interval in sec | Amount per sec
-------------------------------------------------------------------------
05-'12| Prod A | 13 | 5 | 1.3
05-'12| Prod B | 4 | 5 | 0.8
05-'12| Prod C | 18 | 5 | 1.8
它實際上是什麼做的是= SUM(金額)/爲每個月份和產品基於第一個表中的值SUM(間隔時間以秒爲單位)。但我在尋找:
Month | Product | SUM of Amount | AVG of Interval in sec | Amount per sec
-------------------------------------------------------------------------
05-'12| Prod A | 13 | 5 | 2.6
05-'12| Prod B | 4 | 5 | 0.8
05-'12| Prod C | 18 | 5 | 3.6
所以從字面上透視字段「間隔的AVG在秒」分裂透視字段「金額之和」。
如何實現這一目標?
元問題:是Excel的電力用戶的問題,例如這個最適合的StackOverflow,超級用戶,或其他一些StackExchange網站? – StockB