过滤数据透视表中的前10个元素不会显示预期的行

时间:2018-06-08 06:23:26

标签: excel pivot-table

我正在使用excel的数据透视表来从tableau对Super Store Dataset中的数据进行排序和过滤。这是我输出的屏幕截图。

enter image description here

我遵循的步骤是:

a. Put Order Date in the Rows. 
b. Put Sub-Category in the Columns.
c. Put the Profit in the Sum of Values.

Data Placement

之后我采取了以下措施:

d. Sort the Grand Total of the Sub Category from largest to smallest.
e. Sort the Grand Total of Order Date from largest to smallest.
f. Filter Top 3 from the Sub-Category.
g. Filter Top 10 from the Order Date.

上面的Excel图片显示了我的输出。

现在的问题是,即使excel表应该显示top 10订单,它也只能显示7到8个订单。其余2到3个是空白的,或者甚至不属于top 10类别。

enter image description here

有人知道为什么会这样吗?如何防止这种情况。 感谢。

编辑:这就是前15名的样子: 我认为前十名是基于垂直的总计,它也应该是前15名的一部分。

enter image description here

这是前20名:

enter image description here

1 个答案:

答案 0 :(得分:1)

看起来这是因为在兼容模式下打开.xls工作簿。这意味着创建了版本10数据透视表,它们具有与更高版本12数据透视表不同的过滤功能。

将工作簿更改为升级的文件格式(.xlsx),并刷新数据透视表 - 您将收到一条有趣的消息,通知您对Top 10过滤所做的更改,然后将正确应用多个前N个过滤器:

Pivot filter message

这是一些more information about Pivot Table versions / compatibility, from Microsoft