Reputation: 295
I've been tracking a bunch of dates (with format string) under the dimension 'Product' in Google Analytics.
In Data Studio, I then have a simple Line Chart with all these dates (x) and their respective List Views. Like this:
Is there a way to aggregate these days by month and year?
Like this:
2020-08
2020-09
2020-10
and so on...
Thanks in advance for your help.
Upvotes: 5
Views: 12917
Reputation: 6472
The below creates a Date field and then uses the Date field in a Time Series chart with Date Granularity.
Creating the TODATE Data Source-level Calculated Field below to extract a Google Data Studio recognised Date field (where Product
represents the current Date field):
TODATE(Product, "%Y-%m-%d", "%Y%m%d")
GIF to visualise the process:
Product_Date
Product_Date
; set the Granularity as required (Year, Year Month, etc)Google Data Studio Report and a GIF to elaborate to the above:
Upvotes: 11