简体   繁体   English

计数 NULL 和 tableau 中的其他值

[英]Count NULL and other values in tableau

I want to make chart displaying count number of values in column (null as one value).我想让图表显示列中值的计数(null 作为一个值)。

在此处输入图像描述

I'm new to Tableau, so I've only been able to solve your problem partly -我是 Tableau 新手,所以我只能部分解决您的问题 -

  1. In Rows Shelf, add your Field_Name .Rows Shelf 中,添加您的Field_Name
  2. In Marks Card, double click to create a fresh criteria, and enter text - COUNT([Field_Name])Marks Card 中,双击创建一个新条件,然后输入文本 - COUNT([Field_Name])
  3. Choose category of the criteria as Text instead of Details选择标准的类别作为Text而不是详细信息

This creates a list of unique items in your List and their counts;这会在您的列表中创建一个唯一项目列表及其计数; except for the Null values (My dataset contains 2 Null entries).除了Null 值(我的数据集包含 2 个Null条目)。
Note: The counts of the null values can be checked by clicking the Null 0 row, and selecting the Full Data tab from View Data...注意:null 值的计数可以通过单击Null 0行并从View Data...选择Full Data选项卡来检查...

Image for Ref -参考图像 - 计数表示

查看数据 - 完整数据

Upon digging into Tableau fundamentals, I learnt that you can do this with 2 simple steps:-在深入研究 Tableau 基础知识后,我了解到您可以通过 2 个简单的步骤来做到这一点:-

  1. You may place the attribute in Row Shelf.您可以将属性放在Row架中。
  2. In the Navigation Panel on the left, under Measures section, you'll find something called Number of Records OR ExcelWorksheetName (Count) in italics.在左侧导航面板的Measures部分下,您会发现以斜体显示的名为Number of Records或“ ExcelWorksheetName (Count) ”的内容。 Drag that into the Data area of the visualization.将其拖到可视化的数据区域中。

This approach gives you the Null counts as well: :)这种方法也为您提供 Null 计数::)

Image for Ref -参考图像 - 在此处输入图像描述

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

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