Skip to main content
 首页 » 编程设计

google-analytics之数据工作室 | "No Data"设置日期范围时

2025年05月04日16小虾米

目标:

构建一个包含日期范围和计数增长趋势的折线图。

数据格式

|------日期------|------计数----|

|---年/月/日--- |-------- 1 ---------- |

|------------------------|-------- 0 ---------- -- |

|------------------------|-------- 0 ---------- -- |

|---年/月/日--- |-------- 1 ---------- |

|---年/月/日--- |-------- 1 ---------- |

问题

当我在表格图表中查看我的数据时,我可以清楚地看到我的数据。但是,当我通过数据过滤器或在图表中定义来选择自定义日期范围时,我总是得到“无数据”。我已确保我的日期数据映射到 YYYY/MM/DD。

问题

是什么导致了这种行为?按照所有逻辑,数据是存在的,当我删除日期范围或设置为自动日期范围时我可以看到它,但当我使用特定日期范围时看不到它。

Note

Not all entries will have a date. I thought this might be a problem so I added a filter to exclude data where there was a date. This did not solve the problem. you may ask when I have null rows; this is because there is more data I have but cannot show here.

请您参考如下方法:

不是“正确”答案,但以下解决方法对我有用。

创建一个新字段并将公式设置为 TODATE(Date,'DEFAULT_DASH','%Y%m%d') 其中 Date 是您的原始日期字段那是行不通的。

然后使用这个新字段作为您的日期维度和日期范围。