I would like to plot a time series by month, but my input data is formatted as "%Y-%m-%d". So, I create another time dimension with the following formula:
TODATE(date, "%Y%M")
My issue is that the new dimension is one month behind what it should be. For example, an input date of '2017-08-15' results in '2017-07' (or that information in whatever data studio's internal date structure is). The result is that changes in the time series metric appear to have occurred a month earlier than they actually did. Here are screenshots of a toy example with google sheets data and the resulting plot. Note that the time series plot is set to cumulative:
Data with an increase in count for August:
Time series plot showing an increase in count in July:
The increase in count in August of 2017 appears to have occurred in July. Although these data are from sheets, the data from my actual issue are from a Postgres DB table, so I don't imagine it's an issue with the data source. What am I doing wrong?
Do note
%M
stands for Minute, not Month.%m
would be considered a 'month' value.