当前位置:网站首页>[Excel] 数据透视图
[Excel] 数据透视图
2022-07-04 05:14:00 【山茶花开时。】
数据透视图是Excel中一个用起来十分便利的动态图表工具
当我们需要根据数据量较大的数据源进行数据统计和分析时,可以将数据透视表结合数据透视图一同使用,借助数据透视图满足各种可视化展示及数据分析的需求
我们可以根据数据透视表直接创建数据透视图,这样生成的数据透视表和透视图共用一个数据缓存,能够自动实现联动更新
本文练习数据透视图的数据源
数据透视图(数据源)
https://download.csdn.net/download/Hudas/85504246?spm=1001.2014.3001.5503
某企业2020年销售数据放置在"数据源"工作表中,部分数据如下图所示:

问题1:根据上述数据源查看全年各月(1月-12月)的销售变动趋势情况
思路: 使用折线图满足销售趋势的展示需求
1.根据数据源创建数据透视表,结果如下图所示:

2.创建数据透视图

3.创建的数据透视表如下所示,图表的位置、大小以及各种图表元素都支持自定义设置,图表类型也可以根据需要进行变更

问题1.2:查看各月之间的销售对比情况
思路:可将上述已经做好的折线图变更为柱形图

注意
这里用到的"数据透视图工具"选项卡是上下文选项卡,仅当选中数据透视图时才会在功能区显示,当定位到空白单元格时,该选项卡会自动隐藏
变更图表类型后的数据透视图如下所示:

可根据实际需求,灵活更改数据透视图的图表类型,满足用户的各种数据分析需求
问题2: 美化数据透视图
1.选中数据透视图,单击"设计"选项卡,在"图表样式"中进行选择,当鼠标指针在图表样式上方悬停时,会自动展示该样式的图表预览,单击图表样式即可对数据透视图进行自动美化

2.利用图表样式自动美化后的数据透视图如下所示

3.数据透视图在外观上比普通图表多了很多筛选按钮,图表中过多的筛选按钮会影响商务图表的专业性和整洁度,可以将这些筛选按钮隐藏起来

4.隐藏筛选按钮后的数据透视图如下所示

4.修改图表标题、调整图表大小

问题3: 插入切片器让数据透视表和数据透视图联动更新
数据透视图是在数据透视表基础上创建出来的,即数据透视图的数据源就是数据透视表
例子,按照指定的分店和产品为条件进行数据透视表和数据透视图的更新、查看
1.选中数据透视表任意单元格(如A3单元格),插入切片器,操作步骤如下

2.在切片器中根据实际需求选中对应项目(如"分店"和"产品")的复选框

3.调整切片器的位置及大小,使整个报表布局整洁

4.根据用户需求利用切片器动态筛选,使数据透视表及数据透视图联动更新,如要查看南京路店的鱼油在全年12个月的销售对比情况,则筛选后的效果图如下所示

5.插入的切片器不但可以调整位置及大小,而且可以根据需要调整切片器中各项目的纵向和横向排放样式。例如,如果想将"分店"切片器中的项目横向分布排放,可以将其列数从1更改为3

6.调整切片器中列数后,重新调整切片器大小及位置

7.为了使整个界面更加简洁、专业,可以隐藏不必要的信息,如切片器的标题名称"分店"。其方法是选中切片器,然后单击"切片器设置"按钮

8.弹出"切片器设置"对话框

9.设置好"分店"切片器后,利用同样的方法设置"产品"切片器,然后重新调整图表布局及切片器位置,将切片器嵌入数据透视图区域,便于用户直接根据需求筛选

边栏推荐
- [matlab] general function of communication signal modulation - generation of narrow-band Gaussian white noise
- Remote desktop client RDP
- 2022g2 power station boiler stoker special operation certificate examination question bank and answers
- Zzulioj:1201: mode problem
- Trie number dictionary tree
- TCP state transition diagram
- EVM proof in appliedzkp zkevm (11)
- 2022年R2移动式压力容器充装复训题库及答案
- LM small programmable controller software (based on CoDeSys) note XXI: error 3703
- cmake
猜你喜欢

LM small programmable controller software (based on CoDeSys) note XXI: error 3703

National vocational college skills competition (secondary vocational group) network security competition questions - Analysis

如何使用postman实现简单的接口关联【增删改查】

Automated testing selenium foundation -- webdriverapi

LM small programmable controller software (based on CoDeSys) note 22: error 4268/4052

Daily question brushing record (12)

Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display

Electronic components mall and data manual download website summary

Flutter calls Gaode map app to realize location search, route planning and reverse geocoding

【兴趣阅读】Adversarial Filtering Modeling on Long-term User Behavior Sequences for Click-Through Rate Pre
随机推荐
ping端口神器psping
Just do it with your hands 7 - * project construction details 2 - hook configuration
BUU-Crypto-Cipher
C # character similarity comparison general class
The data mark is a piece of fat meat, and it is not only China Manfu technology that focuses on this meat
TCP state transition diagram
BUU-Pwn-test_ your_ nc
BUU-Real-[PHP]XXE
Encryption and decryption
How to configure static IP for Kali virtual machine
[matlab] matlab simulation modulation system - VSB system
724. 寻找数组的中心下标
How to use postman to realize simple interface Association [add, delete, modify and query]
2022年R2移动式压力容器充装复训题库及答案
LM small programmable controller software (based on CoDeSys) note XXI: error 3703
Li Kou's 300th weekly match
[matlab] matlab simulates digital baseband transmission system - digital baseband transmission system
Trie数-字典树
cmake
光模塊字母含義及參數簡稱大全
https://download.csdn.net/download/Hudas/85504246?spm=1001.2014.3001.5503