数据透视表怎么刷新数据

A simple data change can cause a strange pivot table refresh error, if you added the data to the Data Model. The problem is easy to fix, once you see what's causing it, but the error message, shown below, isn't much help! I'd never heard of function PCMinorObjectCollection, had you?

如果将数据添加到数据模型中,则简单的数据更改可能会导致奇怪的数据透视表刷新错误。 一旦发现问题的根源,就很容易解决该问题,但是下面显示的错误消息并没有多大帮助! 我从未听说过函数PCMinorObjectCollection,对吗?

奇怪的错误信息 (Strange Error Message)

I learned about this problem from UniMord, who explained how to reproduce the error in a few simple steps. Hopefully, you'll never run into this problem, but thanks to UniMord for sharing his information, in case you need it!

我从UniMord了解了这个问题,他通过几个简单的步骤解释了如何重现该错误。 希望您永远不会遇到这个问题,但是感谢UniMord在需要时分享他的信息!

Here's an unreadable screen shot of the strange error – it's one of those really wide messages, and included references that I didn't recognize, such as function PCMinorObjectCollection. What is that?

这是一个奇怪的错误,它的屏幕截图不可读-这是真正的错误消息之一,其中包括我不认识的引用,例如函数PCMinorObjectCollection。 那是什么?

Here's an edited version of that message, with some of the text moved, so you can read all of it.

这是该消息的编辑版本,其中一些文本已移动,因此您可以阅读所有消息。

And here's a text version of the message, in case anyone is searching for help with this error message:

这是该消息的文本版本,以防有人在寻求有关此错误消息的帮助:

  • We couldn't get data from the Data Model. Here's the error message we got:我们无法从数据模型中获取数据。 这是我们收到的错误消息:
  • An unexpected error occurred (file 'pcminorobjcoll.inl', line 109, function PCMinorObjectCollection < class PCProperty, class NameHashSupport > ::SetNameAndUpdateCollection')发生意外错误(文件'pcminorobjcoll.inl',行109,函数PCMinorObjectCollection <类PCProperty,类NameHashSupport> :: SetNameAndUpdateCollection')

是什么导致错误? (What Caused the Error?)

Fortunately, UniMord didn't just send me a problem, and reproduction steps – he had figured out what caused the error, and how to fix it.

幸运的是,UniMord不仅给我发送了一个问题,而且给了我更多的解决方法–他已经弄清楚了导致该错误的原因以及解决方法。

UniMord had done one simple thing that caused the problem – he changed one of the source data headings from upper case to proper case. That's it! Making that one simple change apparently caused one of the Data Model circuits to overheat, or something, and it had a little meltdown.

UniMord做了一件简单的事情就引起了问题-他将源数据标题之一从大写改为了大写。 而已! 进行一次简单的更改显然会导致数据模型电路之一过热或发生某种情况,并且电路融化了一点。

Or, to misquote HAL, the computer in 2001: A Space Odyssey, "I'm sorry, UniMord. I'm afraid I can't do that."

或者, 错误地引用 2001年的HAL电脑 :《太空漫游》,“对不起,UniMord。恐怕我做不到。”

如何重现问题 (How to Reproduce the Problem)

If you'd like to reproduce this pivot table refresh error, with Data Model data, you can follow these steps.

如果您想使用数据模型数据重现此数据透视表刷新错误,则可以按照以下步骤操作。

  • Create a simple list on a worksheet, like the one shown below. It has 3 columns – Num, Month, DAY在工作表上创建一个简单的列表,如下图所示。 它具有3列-Num,Month,DAY
  • Format the list as a named Excel table.

    将列表格式化为一个命名的Excel表 。

  • Create a pivot table from the table, and check the box to Add to Data Model

    从表中创建数据透视表,然后选中“ 添加到数据模型 ”框

  • Add a couple of fields to the pivot table layout – I put DAY in the Rows area, and Num in the Values area, as Sum of Num在数据透视表布局中添加几个字段–我将DAY放在Rows区域中,将Num放在Values区域中,作为Num之和

进行零钱 (Make a Small Change)

Next, you'll make a small change that causes the error when refreshing.

接下来,您将做一个小的更改,刷新时会导致错误。

  • In the named table, change the case of one of the headings – I changed DAY to Day在命名表中,更改标题之一的大小写–我将DAY更改为Day
  • Right-click on a pivot table cell, and refresh the pivot table右键单击数据透视表单元格,然后刷新数据透视表
  • The first refresh should be OK第一次刷新应该可以
  • Next, refresh the pivot table again接下来,再次刷新数据透视表
  • This time you should see the error message that mentions the function, PCMinorObjectCollection这次,您应该看到提到该函数PCMinorObjectCollection的错误消息

检查数据透视表字段列表 (Check the PivotTable Field List)

That error message is really confusing, and it doesn't give you any clues as to what is wrong, or needs to be fixed.

该错误消息确实令人迷惑,并且它不给您任何有关错误或需要修复的线索。

While troubleshooting the error, UniMord noticed that the changed field was listed twice in the PivotTable Field List.

在对错误进行故障排除时,UniMord注意到在“数据透视表字段列表”中两次列出了更改的字段。

  • the old name (DAY) is still there旧名称(DAY)仍然存在
  • the new name is also listed, with a number added (Day 1)新名称也会列出,并增加一个数字(第1天)

解决问题 (Fix the Problem)

There might be other ways to fix this problem, but here's what I did.

可能还有其他方法可以解决此问题,但这是我所做的。

  • In the source data table, change the heading back to its original case – I changed Day back to DAY在源数据表中,将标题改回其原始大小写–我将Day改回DAY
  • Then, refresh the pivot table然后,刷新数据透视表
  • The extra field should disappear from the PivotTable Field List多余的字段应从数据透视表字段列表中消失

正确更改标题大小写 (Change a Heading Case With No Error)

Next, you'll change the heading case again, but in a two-step process, to avoid getting an error message.

接下来,您将再次更改标题的大小写,但是要分两个步骤进行,以避免收到错误消息。

NOTE: Use this method if you need to make any future "case" changes to the data headings.

注意 :如果您以后需要对数据标题进行任何“大小写”更改,请使用此方法。

  • In the source data table, change the heading case – I changed DAY to Day在源数据表中,更改标题大小写–我将DAY更改为Day
  • On the Excel Ribbon's Data tab, click the Manage Data Model command在“ Excel功能区”的“数据”选项卡上,单击“管理数据模型”命令
  • In the Power Pivot for Excel window, on the Home tab, click the Design View command在Power Pivot for Excel窗口的“主页”选项卡上,单击“设计视图”命令
  • In the diagram, right-click on the field name that you changed, and click Rename在图中,右键单击您更改的字段名称,然后单击“重命名”。
  • Type the field name, the way that you entered it in the source data table – I changed DAY to Day输入字段名称,即您在源数据表中输入字段的方式–我将DAY更改为Day

If the Excel worksheet is visible in the background, you might see an alert at the top of the sheet:

如果Excel工作表在后台可见,则您可能会在工作表顶部看到警报:

  • DATA MODEL CHANGED Select the workbook to get these changes数据模型已更改选择工作簿以进行这些更改
  • Close the Power Pivot Window, and the revised field name should appear in the pivot table, and in the PivotTable Field List.关闭“ Power Pivot窗口”,修改后的字段名称应出现在数据透视表和“ PivotTable字段列表”中。
  • Refresh the pivot table, and no error message should appear.刷新数据透视表,并且不会出现错误消息。

更多数据透视表信息 (More Pivot Table Info)

For more pivot table information, you can go to these pages on my Contextures website.

有关更多数据透视表的信息,您可以转到我的Contextures网站上的这些页面。

Refresh Pivot Table

刷新数据透视表

Summary Functions

摘要功能

Data Source

数据源

Pivot Table Errors

数据透视表错误

翻译自: https://contexturesblog.com/archives/2020/03/26/excel-pivot-table-refresh-error-with-data-model/

数据透视表怎么刷新数据


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

相关文章:

  • excel随机数_原来Excel是个很好用的点名软件
  • 计算机右键无法新建excel2007,电脑桌面右键新建菜单中没有Word/Excel/PPT等文档怎么办?...
  • Excel 导出
  • POI 导出excel 注意事项
  • excel快捷技巧
  • excel相关内容
  • vbs 关闭excel的piovt table自动刷新
  • Excel自动打开、刷新、保存
  • 【PowerQuery】Excel 自动刷新PowerQuery连接
  • 使用Python将多个单独的Excel文件整合到一个Excel文件的不同工作表里
  • spdif数字传输规范
  • 基于 USB PD DRP的充电宝原理解析
  • typecpd协议规范 C语言,USB-C(USB Type-C)规范的简单介绍和分析
  • 数据库规范化三个范式应用实例
  • Kaggle手写数字识别(Digit Recognizer)记录
  • Python读写文件(txt, csv等)小结
  • PD VDM消息
  • PD等多协议快充诱骗触发器SINK(“Power Z 弟弟 Power Low”)DIY
  • 详解 16 个 Pandas 读与写函数
  • python学习-109-多个CSV文件的合并
  • 使用SVM/k-NN模型实现手写数字多分类 - 清华大学《机器学习实践与应用》22春-周作业
  • python 读excel中一个表_python 实现读取一个excel多个sheet表并合并的方法
  • python合并excel的多个sheet
  • 【机器学习】手写数字识别学习笔记(对三篇文件进行分析记录)
  • 3大利器推荐,帮你写出规范漂亮的python代码
  • USB-PD快充和QC快充的区别
  • 【机器学习实战】利用KNN和其他分类器对手写数字进行识别
  • python合并两个列表并去重_python合并多个txt文件
  • 对数坐标怎么理解
  • 斐波那契数列重要不等式证明

数据透视表怎么刷新数据_数据模型的Excel数据透视表刷新错误相关推荐

  1. bartender外部表不是预期格式_批量合并Excel数据时“外部表不是预期格式”或“文件包含损坏数据”的两种情况...

    很多朋友在用Power Query合并(汇总)Excel数据时,碰到过"DataFormat.Error:外部表不是预期格式"或"DataFormat.Error:文件包 ...

  2. 数据科学家访谈录 百度网盘_您应该在数据科学访谈中向THEM提问。

    数据科学家访谈录 百度网盘 A quick search on Medium with the keywords "Data Science Interview" resulted ...

  3. java的for循环取出数据只是拿到最后一个_从MySQL中导数据到HBase

    前言 这个问题在网上已经一搜一大把了,为什么要自己亲手总结一下仅仅是因为最近自己公司新上了HBase然后使用Spark去读取MySQL的数据写入HBase的时候遇到了一些问题,也困扰了挺久 现在就详细 ...

  4. excel修复后数据丢失_如何修复Excel数据栏

    excel修复后数据丢失 To make a chart right in the worksheet cells, use Excel Data Bars, built with condition ...

  5. mysql联表查询多记录显示_数据库:MySQL(多表的表记录的查询)(三)

    一.外键约束 1.创建外键 ---每一个班主任会对应多个学生 , 而每个学生只能对应一个班主任----主表 CREATE TABLE ClassCharger( id TINYINT PRIMARY ...

  6. mysql查询一个表有哪些索引_如何查看某张数据库表上都有哪些索引(转)

    索引使用简介 一. 关于索引的知识 要写出运行效率高的sql,需要对索引的机制有一定了解,下面对索引的基本知识做一介绍. 1. 索引的优点和局限 索引可以提高查询的效率,但会降低dml操作的效率. 所 ...

  7. python将excel数据合并_Python语言之Python合并多个Excel数据

    本文主要向大家介绍了Python语言之Python合并多个Excel数据,通过具体的内容向大家展示,希望对大家学习Python语言有所帮助. 安装模块 1.找到对应的模块 http://www.pyt ...

  8. mysql建表按 t分开_记一次MYSQL建表失败得bug

    CREATE TABLE `SUIT` ( `id` INTEGER(11) NOT NULL AUTO_INCREMENT, `acId` INTEGER(11) NULL COMMENT '活动I ...

  9. 10.8 UiPath 数据筛选Filter Data Table的介绍和使用(Excel数据写入另一个Excel中)

    UiPath数据筛选Filter Data Table的介绍和使用 一.数据筛选(Filter Data Table)的介绍 二.Filter Data Table在UiPath中的使用 ) 一.数据 ...

最新文章

  1. 本月Github热门开源项目排行榜...
  2. LeetCode 904. 水果成篮(滑动窗口)
  3. 更多特征变量却未能带来随机森林分类效果的提升
  4. 【编撰】linux IPC 002 - 匿名管道PIPE和有名管道FIFO的概念和实例,以及应用比较
  5. python数据结构和算法讲解_【学习】python数据结构和算法
  6. community 计算模块度_聚苯乙烯泡沫模块可以用在哪些建筑上?
  7. 我与“顶级工程师”距离有多远?
  8. CSRF verification failed. Request aborted.的解决办法
  9. Docker 安装基本操作
  10. tensorflow keras 搭建相机位姿估计网络--例
  11. 软件测试过程中主要涉及的文档及其内容
  12. DPDK ipv4 ip分片与重组
  13. 我推崇的流行唱法:美國Speech Level Singing的介紹和討論(推荐)
  14. 在BASH下简单实现十进制到二进制和十六进制的转换
  15. android锁屏页面的实现
  16. 配置SQL Server 2016无域AlwaysOn
  17. 易语言多线程时钟多线程数组传参
  18. 雨水情监测及大坝安全监测设施有哪些?
  19. 组合数学之六 —— 差分序列Stirling数
  20. 操作系统简单分页存储管理(含代码)

热门文章

  1. 全国互联电网调度管理规程(第一章__第九章)
  2. ML之PDP:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用DT决策树RF随机森林+PDP部分依赖图可视化实现模型可解释性之详细攻略
  3. Git服务器搭建及仓库克隆
  4. MySQL及Navicat的安装和使用
  5. 《中国人工智能学会通讯》——8.44 基于用户缺陷报告挖掘软件缺陷
  6. 粒子群算法求函数极值
  7. VR相机市场杀出一匹黑马,SONICAM备受众筹用户追捧
  8. word中如何设置奇偶页不同的页眉和页脚,怎么从指定页开始加页码
  9. (转)编辑器_编辑器杂谈(转载)+点评
  10. 重写drf的ValidationError, 改变抛出异常的状态码