如何根据特定条件仅使用单元格的值创建饼图?
我正在尝试制作一个饼图,其中包含实际值 (%)给定的单元格,将被一些过滤器选择。
我有一个数据集,其中每行包含一名员工,每列包含多个指标。
过滤器:
- 第一个过滤器针对员工:
person_1
- 第二个过滤器针对 wk_no:
01
我想返回指标 x_5 >> 的值所以我想要一个分为 65% 切片和 35% 切片的饼图...
我添加了一个额外的列:x_8 = 100%-x_5;但还没弄清楚...
数据表:
员工 | emp_no | wk_no | x_1 | x_2 | x_3 | x_4 | x_5 | x_6 | x_7 |
---|---|---|---|---|---|---|---|---|---|
person_1 | 51926 | 01 | 152 | 4% | 90 | 35 | 65% | 8% | 56% |
person_2 | 53260 | 01 | 143 | 17 % | 22 | 86 | 39% | 46% | 39% |
person_3 | 55138 | 01 | 244 | 30% | 204 | 236 | 64% | 46% | 71% |
person_4 | 56884 | 01 | 446 | 23% | 142 | 301 | 61% | 24% | 41% |
person_5 | 52484 | 01 | 150 | 16% | 31 | 77 | 55% | 70% | 94% |
文件: datastudio 报告 数据集表
I am trying to make a pie chart that consists of the actual value (%) in a given cell, which will be selected by some filters.
I have a data set that consists of an employee per row, with several metrics in each column.
Filters:
- First filter on employee:
person_1
- Second filter on wk_no:
01
and I would like to return that value for metric x_5 >> so I want to have a pie-chart that is divided in a 65%-slice and also in a 35%-slice...
I have added an extra column: x_8 = 100%-x_5; but still haven't figured it out...
Data table:
employee | emp_no | wk_no | x_1 | x_2 | x_3 | x_4 | x_5 | x_6 | x_7 |
---|---|---|---|---|---|---|---|---|---|
person_1 | 51926 | 01 | 152 | 4% | 90 | 35 | 65% | 8% | 56% |
person_2 | 53260 | 01 | 143 | 17% | 22 | 86 | 39% | 46% | 39% |
person_3 | 55138 | 01 | 244 | 30% | 204 | 236 | 64% | 46% | 71% |
person_4 | 56884 | 01 | 446 | 23% | 142 | 301 | 61% | 24% | 41% |
person_5 | 52484 | 01 | 150 | 16% | 31 | 77 | 55% | 70% | 94% |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
您可以制作灯塔量表图表,请参阅社区可视化。
You can make a Lighthouse Gauge chart, see Community visualizations.