[英]How to create a 'past 3 months' time period in Google Data Studio
I'm trying to have my line chart show data for the past 3 months.我试图让我的折线图显示过去 3 个月的数据。 GDS has a 'last quarter' date range, but this shows me Q1, Q2, Q3, or Q4.
GDS 有一个“最后一个季度”的日期范围,但这显示了 Q1、Q2、Q3 或 Q4。 What I need is the data for the past 3 full months (not counting the current month).
我需要的是过去 3 个完整月的数据(不包括当月)。 I tried creating a calculated field but the documentation isn't proving very useful for the matter at hand.
我尝试创建一个计算字段,但事实证明文档对于手头的问题并不是很有用。
eg.例如。 If the current date is Feb-20, I want to show data from 'Nov 1 - Jan 31'.
如果当前日期是 2 月 20 日,我想显示“11 月 1 日 - 1 月 31 日”的数据。 Also need to compare to same period from last year.
还需要与去年同期进行比较。
Can anyone help?任何人都可以帮忙吗? Thanks in advance!
提前致谢!
I don't think this is possible in the way you're describing. 我认为您所描述的方式是不可能的。 You can achieve the same by creating a metric in your data source and then applying a filter at the page / chart / report level to remove data which doesn't meet your criteria
您可以通过在数据源中创建一个指标,然后在页面/图表/报告级别应用过滤器来删除不符合您条件的数据,来达到相同的目的
This still includes the current month.这仍然包括当前月份。 When you show data on a chart this way, it looks misleading because the beginning and current month on the chart will look smaller.
当您以这种方式在图表上显示数据时,它看起来会产生误导,因为图表上的开始月份和当前月份看起来会更小。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.