简体   繁体   English

带有粒度列的表未显示缺失值的“空”(Google 数据洞察)

[英]Table with granulated columns not showing "Null" for missing value (Google Data Studio)

I created a table in Google Data Studio using Google Sheets as the Data Set:我使用 Google Sheets 作为数据集在 Google Data Studio 中创建了一个表:

表格截图

I changed the granularity of the date column to "Year month" to group the data in months.我将日期列的粒度更改为“年月”以按月对数据进行分组。 As you can see July 2020 is missing from the table.如您所见,表中缺少 2020 年 7 月。 My source data doesn't have any values matching a date in July and that's why it is missing.我的源数据没有任何与 7 月日期匹配的值,这就是它丢失的原因。 But I want July 2020 to show up in the table with a "null" or "0" or "no data".但我希望 2020 年 7 月在表格中显示为“空”或“0”或“无数据”。 I chose the setting the for "missing data" show "null" and yet its not showing up.我选择了设置“缺失数据”显示“空”但它没有显示。

Added data set: Google sheet dataset新增数据集: Google sheet dataset

Two ways of going about it are:有两种方法:

1) Add data in the Data Set 1)在数据集中添加数据

The feature is currently not implemented in Google Data Studio Tables , thus one approach would be to add the Date (July 2020) at the Data Set (Google Sheet).该功能目前未在 Google Data Studio Tables 中实现,因此一种方法是在数据集(Google Sheet)中添加日期(2020 年 7 月)。

Update : Added a New Page to the Report as well as an image to demonstrate, where the highlighted rows in Orange represent the added Date, July 2020 (Note that NULL , 0 or the required value could be used as a metric):更新向报告添加了一个新页面以及一个图像来演示,其中橙色突出显示的行代表添加的日期, July 2020 (请注意, NULL0或所需的值可以用作指标):

2) Time Series Chart 2) 时间序列图

Alternatively, a Time Series chart could be created, which would display the month of July as 0 (missing data is set to Line to Zero by default).或者,可以创建时间序列图表,将 7 月份显示为 0(默认情况下,缺失数据设置为Line 为零)。

Google Data Studio Report and a GIF to elaborate: 谷歌数据洞察报告和 GIF 详细说明:

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

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