简体   繁体   English

如何计算 Tableau 中所有维度的空单元格总数?

[英]How can I count the total number of empty cells across all dimensions in Tableau?

I would like to analyze if our project managers have filled out all data attributes in a table (milestones, estimated costs etc.).我想分析一下我们的项目经理是否填写了表格中的所有数据属性(里程碑、估计成本等)。 We have more than 100 attributes.我们有 100 多个属性。 We want to use Tableau to visualize this by simply comparing the total number of empty cells to the total number of cells (and then filter by project manager).我们想使用 Tableau 通过简单地将空单元格的总数与单元格的总数进行比较(然后按项目经理过滤)来可视化这一点。 Ideally, it would want something super easy like Ratio = [number of blank cells]/[total number of cells].理想情况下,它需要一些超级简单的东西,比如 Ratio = [空白单元格数]/[单元格总数]。 So my question is:所以我的问题是:

Is there an easy way to count the total number of empty cells in an entire table, without having to type in all 100 dimensions?有没有一种简单的方法来计算整个表格中空单元格的总数,而无需输入所有 100 个维度?

I currently use:我目前使用:

SUM(if ISNULL([dimension1]) THEN 1 ELSE 0 END)

But that only gives me the number of empty cells in dimension1.但这只会给我维度1中的空单元格的数量。 Is there an elegant way to include all dimensions?有没有一种优雅的方式来包含所有维度?

Also, I am looking for a way to find the total number of cells (blank and filled) in a data table.另外,我正在寻找一种方法来查找数据表中的单元格总数(空白和填充)。 Something like the 'Number of Records' measure, but for cells.类似于“记录数”的度量,但针对单元格。 Is there an easy way of doing this?有没有一种简单的方法可以做到这一点?

Thanks so much for your help!非常感谢你的帮助!

Reshape your data and this becomes easy.重塑您的数据,这变得很容易。 The Tableau pivot functionality may work for you to do this. Tableau pivot 功能可能适合您执行此操作。https://help.tableau.com/current/pro/desktop/en-us/pivot.htmhttps://help.tableau.com/current/pro/desktop/en-us/pivot.htm

This will convert the dimensions to one field and then you will be able to count the nulls as per your formula above.这会将维度转换为一个字段,然后您将能够根据上面的公式计算空值。

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

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