为什么数据透视表不能分组

If you try to group pivot table items in Excel, you might get an error message that says, "Cannot group that selection." For older versions of Excel, if you had a problem grouping pivot table items, it was usually caused by blank cells, or text in number/date fields. For Excel 2013 and later, there's another thing that can prevent you from grouping.

如果您尝试在Excel中对数据透视表项进行分组,则可能会收到一条错误消息:“无法对该选择进行分组”。 对于较早版本的Excel,如果在分组数据透视表项时遇到问题,通常是由空白单元格或数字/日期字段中的文本引起的。 对于Excel 2013及更高版本,还有另一件事可以阻止您进行分组。

无法将该选择分组 (Cannot Group That Selection)

Here's a screen shot of the "Cannot group that selection." error message that appears. The message doesn't give you any clues as to why you can't group the items. It's up to you to do the detective work.

这是“无法对所选内容进行分组”的屏幕截图。 出现错误信息。 该消息没有为您提供为什么无法将项目分组的任何线索。 侦探工作由您决定。

资料模型 (Data Model)

We'll look at the traditional reasons for this grouping problem in the next section. But first, here's the newer issue, that might affect you, if you're using Excel 2013 or later.

在下一节中,我们将探讨造成这种分组问题的传统原因。 但是首先,这是较新的问题,如果您使用的是Excel 2013或更高版本,则可能会影响您。

  • When you create a pivot table, there's a check box to "Add this data to the Data Model".创建数据透视表时,会有一个复选框“将数据添加到数据模型”。
  • If you checked that box, you won't be able to group any items in the pivot table.如果选中此框,则将无法对数据透视表中的所有项目进行分组。

When the source data is added to the data model,  you end up with an OLAP-based Power Pivot, instead of a traditional pivot table, and the grouping feature is not available.

将源数据添加到数据模型后,最终将获得基于OLAP的Power Pivot,而不是传统的数据透视表,并且分组功能不可用。

它是基于OLAP的吗? (Is It OLAP-Based?)

A quick way to tell if your pivot table is OLAP-based is to check the Ribbon:

判断数据透视表是否基于OLAP的快速方法是检查功能区:

Select any cell in the pivot table

选择数据透视表中的任何单元格

  • On the Excel Ribbon, click the Analyze tab (under PivotTable Tools)在Excel功能区上,单击“分析”选项卡(在“数据透视表工具”下)
    • If it's dimmed out, your pivot table is the traditional type如果变暗,则您的数据透视表是传统类型
    • If the command is active, your pivot table is OLAP-based如果该命令处于活动状态,则您的数据透视表基于OLAP

And if you check the Fields, Items, & Sets drop down, some of the features will be dimmed out, for OLAP-based pivot tables.  For example, you can't create a calculated field or calculated item.

并且,如果您选中“字段,项目和集”下拉列表,则对于基于OLAP的数据透视表,某些功能将变暗。 例如,您无法创建计算字段或计算项目。

解决分组问题 (Fix the Grouping Problem)

I haven't found any way to change the pivot cache from an OLAP-based source (data model), to a data source that isn't in the data model. So, if you need grouping, create a new pivot table from the source data, and do NOT check the box to add the data to the Data Model.

我还没有找到将数据透视表缓存从基于OLAP的源(数据模型)更改为不在数据模型中的数据源的任何方法。 因此,如果需要分组,请从源数据创建一个新的数据透视表,并且不要选中将数据添加到数据模型中的框。

NOTE: You can keep the OLAP-based pivot table too, and have two pivot tables based on the same data, using different pivot caches.

注意 :您也可以保留基于OLAP的数据透视表,并使用不同的数据透视表缓存具有两个基于相同数据的数据透视表。

空白单元格或文本 (Blank Cells or Text)

If your pivot table is the traditional type (not in the data model), grouping problems are usually caused by invalid data in the field that you're trying to group.

如果数据透视表是传统类型(不在数据模型中),则分组问题通常是由您要分组的字段中的无效数据引起的。

If you're trying to group dates or numbers, the grouping problem usually occurs when the field contains records with one of these items:

如果您尝试对日期或数字进行分组,则当字段包含具有以下项目之一的记录时,通常会出现分组问题:

  • a blank cell in a date/number field, or日期/数字字段中的空白单元格,或
  • a text entry in a date/number field.日期/数字字段中的文本输入。

To fix the problem

解决问题

  • For blank cells, fill in the date/number (use a dummy date/number if necessary).对于空白单元格,请填写日期/数字(如有必要,请使用虚拟日期/数字)。
  • If there is text in the date/number field, remove it.如果日期/数字字段中有文本,请将其删除。
  • If numbers are being recognized as text, use one of the techniques to change text to real numbers.

    如果将数字识别为文本,请使用其中一种技术将文本更改为实数 。

Then refresh the pivot table, and try grouping the items again.

然后刷新数据透视表,然后尝试再次对项目进行分组。

以前的分组 (Previous Grouping)

If you don't have blank cells or text in the date column, there may be a grouped field left over from a previous time that you grouped the data.

如果日期列中没有空白单元格或文本,则可能是从前一次对数据进行分组以来剩下的分组字段。

  1. Check the field list, to see if there's a second copy of the date field, e.g. Date2.检查字段列表,以查看日期字段是否还有第二个副本,例如Date2。
  2. If there is, add it to the row area, and ungroup it.如果有,请将其添加到行区域,然后取消分组。
  3. Then, you should be able to group the date field again.然后,您应该能够再次将日期字段分组。

数据透视表分组 (Pivot Table Grouping)

Learn more about pivot table grouping, and get a workbook with sample file that you can use for testing. Go to the How to Group Pivot Table Data page on my Contextures website.

了解有关数据透视表分组的更多信息,并获得一个带有示例文件的工作簿,可用于测试。 转到我的Contextures网站上的“ 如何对数据透视表数据进行分组”页面 。

更多数据透视表链接 (More Pivot Table Links)

Clear Old Items in Pivot Table

清除数据透视表中的旧项目

Calculated Field - Count

计算字段-计数

Calculated Items

计算项目

Summary Functions

摘要功能

翻译自: https://contexturesblog.com/archives/2018/01/18/problem-grouping-pivot-table-items/

为什么数据透视表不能分组


http://www.taodudu.cc/news/show-5695707.html

相关文章:

  • 为什么要用全景云台
  • Unity 全景漫游过程中使用AWSD控制镜头移动,EQ控制镜头升降,鼠标右键控制镜头旋转。
  • VR全景相对于传统摄影的优势
  • 详解多镜头全景摄像机
  • 基于全景相机的视觉里程计算法研究
  • 全景成像技术(3)—鱼眼全景成像
  • 手机怎么用外嵌字幕_怎么给视频添加动态歌词字幕?原来用微信就能完成,涨知识了...
  • python怎么加字幕_使用Python和百度语音识别生成视频字幕的实现
  • python 视频加字幕_分享如何使用Python进行短视频的二次创作
  • 怎么给视频添加字幕?分享一种非常便捷的加字幕方法
  • 今年流行“拼接”搭配,简约设计时尚又高级
  • 黑客与画家:9 设计者的品味
  • 发现了turtle画图的重要秘密,教你直接调用简单图案!
  • 教你如何用Python制作花式条形图
  • 小学信息用计算机绘画教案,电脑美术教案
  • coreldraw铺花纹_CorelDRAW简单绘制漂亮的花纹边框技巧介绍
  • 当我们聊飞书时,我们应该聊什么?
  • Android 获取便携式热点开关状态、热点开启与关闭
  • 武林三国将领介绍
  • 解决公司网页邮箱改密码后,outlook登不进去的情况
  • php sll邮箱注册_使用php发送电子邮件(phpmailer)
  • Java学习day09—-封装和继承
  • Audio Bit Depth Super-Resolution with Neural Networks
  • 阿里云Windows无法在IE中下载文件的解决方法
  • 金蝶15.1安装完进入软件有徐少春的头像怎么隐藏
  • 华为鸿蒙或适配高通平台,鸿蒙2.0适配高通平台,网友:华为这是要取代安卓吗?...
  • 积分球高漫反射内表面涂层
  • HDOJ1060-数学公式
  • Shader编程——高光漫反射模型
  • wow经典台词

为什么数据透视表不能分组_问题分组数据透视表项相关推荐

  1. mysql中用于删除数据的是什么意思_在删除关系表中数据时,要先删除主表数据再删除从表数据。_学小易找答案...

    [单选题]在MySQL中,所有存储过程的信息存放在下列哪个数据库中 [填空题]拉伸试验能测定的塑性指标有: 和 . [单选题]下面查看视图的基本信息的语句中,正确的是 [单选题]下面关于视图建立的说法 ...

  2. mysql清空数据库所有表的命令_mysql清空表数据命令是什么?_数据库,mysql,清空表数据...

    mysql服务无法启动怎么解决_数据库 mysql服务无法启动的解决方法是:1.配置环境变量:2.在mysql安装目录下,新建my.ini文件,设置默认字符集.端口.存储引擎等:3.执行[mysqld ...

  3. mysql 修改表空间名称_修改多个表空间的数据文件的名称和位置

    修改多个表空间的数据文件的名称和位置,可以在表空间级别,也可以在数据库级别进行. 在表空间级别进行就如同修改一个表空间数据文件的名称 和位置,一个一个的进行,直到全部完成. 在数据库级别,可以一次性的 ...

  4. mysql 两张表合并查询_中级数据分析-多表查询

    表的加法 表的联结 联结应用案例 case应用案例 一.表的加法 加法:union 表的加法是把两个表的数据,按行合并在一起. 表的加法,会把两个表里重复的数据删除,只保留一个. 如果想保留重复数据, ...

  5. excel工作表添加目录_长Excel工作表的目录

    excel工作表添加目录 In the comments for my post on creating a table of contents in Excel, Eden asked: " ...

  6. mysql表的类型_浅谈MySQL表类型

    MySQL为我们提供了很多表类型供选择,有MyISAM.ISAM.HEAP.BerkeleyDB.InnoDB,MERGE表类型,萝卜白菜各有所爱是不假,可是真正选择何种表类型还是要看业务需要啊,每一 ...

  7. 数据结构顺序表的查找_数据结构1|顺序表+链表

    数据结构学习笔记1 进度:静态分配顺序表+单链表 参考资料:b站 王道考研+小甲鱼 < 判断一个算法的效率时,函数中的常数和其他次要项常常可以忽略,而更应该关注最高项目.的阶数. 推导大O阶方法 ...

  8. mysql表空间满_怎么解决数据库表空间不足

    一.数据库表空间不足导致了,插入操作会报出conn.msg = ORA-01653: 表 *******表名字********无法通过 8192 (在表空间 USERS 中) 扩展 ORA-06512 ...

  9. php表单验证_用PHP进行表单验证

    php表单验证 In this article you'll construct and validate a simple form using HTML and PHP. The form is ...

最新文章

  1. Bitcoin Unlimited发布BCH新版本,石墨烯技术迎来进展
  2. Linux下PDF操作与转换
  3. 游戏社交崛起!四缺一,开黑吗?
  4. Zip4j开源jar包的简单使用
  5. 紫金计算机网络,南京理工大学紫金学院《计算机网络技术》考试复习试题试题(含答案解析)2...
  6. 软件开发技术文档_你知道,直播软件开发需要做的准备工作有哪些?
  7. 大疆网上测评题库_大疆在线测评 - 逻辑题
  8. NVIDIA Tegra Xavier 刷机以及pytorch安装
  9. SAP 采购订单税率计算、单价取值(S4)
  10. 单片机c语言拟合二次曲线y=a0+a1x+a2x^2
  11. 黑马程序员匠心之作|C++教程从0到1入门编程(基础)
  12. IO 操作 (二进制流文件上传下载)
  13. huaweiUSG6650防火墙web故障
  14. 鸡啄米VS2010/MFC编程入门教程——学习1初次接触
  15. 哪个直播平台更适合做企业会议直播?
  16. java获取拼音_java获取中文拼音
  17. 目前常见的大数据分析软件有哪些?
  18. python中的scipy基础知识_python中SciPy是什么?
  19. [UE4] 常用控制台命令
  20. 如何提高测试用例的编写效率?

热门文章

  1. java用接口回调回合制游戏_类DOTA游戏如何设计多样化的技能系统?
  2. 玩幻宠大冒险显示服务器连接失败,别客汇星球之幻宠大冒险首测 体验五星级指尖竞技...
  3. 图形领域GPU标准之战逐鹿并行计算
  4. 唤醒手腕Python全栈工程师学习笔记(持久存储篇)
  5. 爸爸喜欢做的事有钓鱼、看书 。 妈妈喜欢做的事有画画、烹饪 。 儿子继承了父母双方的爱好,输出儿子喜欢做的事。
  6. 【中台】漫画:什么是中台?
  7. iPhone降价,国产手机或受伤
  8. 110吗?刚下载的这个App,好像在偷听我......
  9. PyQt5 serial模块-串口小工具
  10. 男女25岁的资源格局