2016-02-04 79 views
0

假設我有一個像這樣一些樣本數據:務實獲取數據透視表數據的計數

enter image description here

,我按產品>銷售代表>銷售創建數據透視表和秩序

enter image description here

如果我想銷售#John曾爲Product1我會做=GETPIVOTDATA("Sales",$A$3,"Product","Product1","Sales Rep","John")

但是,我將如何得到有條目的計數。即對於Product1John4Kevin2

是否有可能得到使用GETPIVOTDATA()這個計數?

回答

1

爲了得到這個,你需要添加另一個銷售字段到values部分,並將「Summarize By」改爲Count。然後,公式將= GETPIVOTDATA(「銷售量」,$ A $ 3,「Product」,「Product1」)將爲您帶來產品總體數量。