Hoping for some help with an issue in Google Data Studio.
I'm trying to create a time graph that contains cumulative and monthly account creations using data from my Postgres database.
I am connecting to a data source that uses custom SQL to pull from the Postgres database. When I run the query in data studio, it pulls in the columns without issue:
Index | Field | Type | Aggregation | Description
1 | createdAt | Date (YYYYMMDD)| None |
2 | count | Number | Sum
3 | cumulative| Number | Sum
However, when I try to create a chart using Dimension "createdAt" and Metric "count", I get the following error:
"The query returned an error.
Error with SQL statement: ERROR: column "createdat" does not exist
Hint: Perhaps you meant to reference the column "t0.createdAt".
Position: 8
Error ID: bbd9f163"
I've tried using TODATE to change the format of the "createdAt" column, but I get an "Invalid Formula" error when I use a formula like: "TODATE(createdAt, 'DEFAULT_DECIMAL','%Y%m%d')"
Any suggestions as to the root cause of the error and how I might resolve it to create the desired chart?
Thanks!