简体   繁体   English

Tableau - 创建小倍数图表,显示 covid-19 疫苗副作用文本字段中各种关键字的频率

[英]Tableau - creating small multiples chart showing frequency of various keywords in a covid-19 vaccine side effect text field

I have a dataset containing about 40,000 rows of text about covid-19 vaccine side effects reported by individuals (it's a free field text provided by vaccine recipients).我有一个数据集,其中包含大约 40,000 行关于个人报告的 covid-19 疫苗副作用的文本(这是疫苗接受者提供的自由字段文本)。 Eg "My arm was sore for a few days. Just a bit of pain."例如“我的 arm 疼了几天。只是有点疼。” or "I had a slight headache and a bit of nausea."或“我有轻微的头痛和一点恶心。” Other columns state their age, gender, and a few other factors.其他列 state 他们的年龄、性别和其他一些因素。

My end goal is to show the frequency of various side effect keywords (eg "tired" or "headache") by vaccine manufacturer and to allow users to filter it by age and gender.我的最终目标是显示疫苗制造商的各种副作用关键字(例如“疲倦”或“头痛”)的频率,并允许用户按年龄和性别对其进行过滤。 For example, "female 40-49" and then a set of graphs (small multiples?) showing each side effect.例如,“女性 40-49”,然后是一组图表(小倍数?)显示每个副作用。

Here's where I've gotten:这是我得到的地方: 在此处输入图像描述

I used the contains function to create a sheet of each side effect.我使用包含 function 来创建每个副作用的表。 Then I did calculate % of column so that it shows %s, not raw #s.然后我确实计算了列的百分比,以便它显示%s,而不是原始#s。 I then combined all the sheets into a dashboard.然后,我将所有工作表合并到一个仪表板中。

1) How do I hide the "no" column? 1)如何隐藏“否”列? I only want to show the % yes.我只想显示 % 是的。 Eg If it's 3% yes and 97% no, I just want to show 3% said yes.例如,如果 3% 是,97% 不是,我只想显示 3% 的人说是。 2) How do I filter on the dashboard level, not the sheet level? 2)如何在仪表板级别而不是工作表级别进行过滤? Eg If someone wants to see the side effects for men aged 30-39 or perhaps females 60-69.例如,如果有人想查看 30-39 岁男性或 60-69 岁女性的副作用。 I don't want them to have to filter for every single side effect one by one.我不希望他们必须逐个过滤每一个副作用。

To hide the No, try right-clicking on the No and hiding it.要隐藏否,请尝试右键单击否并隐藏它。 I can't be sure that will work, it might leave all of your % total calcs showing 100%.我不能确定这会起作用,它可能会让你所有的 % total calcs 显示 100%。 If that happens, plan B is to use a Tableau late filter, a table calculation.如果发生这种情况,计划 B 是使用 Tableau 后期筛选器,即表格计算。

Create a calculated field:创建计算字段:

LOOKUP(ATTR([YesNoField]),0)查找(ATTR([YesNoField]),0)

Filter on that field to remove the "NO".过滤该字段以删除“否”。 You'll need to do that on every worksheet (it looks like you're using multiple worksheets).您需要在每个工作表上执行此操作(看起来您正在使用多个工作表)。

To filter at a dashboard level, which doesn't work for table calculation filters, but does work for normal filters, show the filter field on your dashboard, then in the filter settings you can tell it to affect all sheets on the dashboard.要在仪表板级别进行过滤,这不适用于表格计算过滤器,但适用于普通过滤器,请在仪表板上显示过滤器字段,然后在过滤器设置中,您可以告诉它影响仪表板上的所有工作表。 Right click on the filter in the dashboard for this option.右键单击仪表板中的过滤器以获取此选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM