I have an existing Looker dashboard that uses a calculated field with DATETIME_SUB to compare month-over-month data views. As of yesterday (8/19/25), I get the following Data Set Configuration Error when loading the report:
CASE WHEN QUARTER(ImportedDate_MST) = QUARTER(DATETIME_SUB(TODAY(“America/Denver”), INTERVAL 1 QUARTER)) AND YEAR(ImportedDate_MST) = YEAR(DATETIME_SUB(TODAY(“America/Denver”), INTERVAL 1 QUARTER)) THEN CreatedTransactions ELSE 0 END
Could someone look into this to see why this is now occurring?
I have a formular QUARTER(datetime_add(Post Date, interval 6 day)), it’s used to work but broken since yesterday. after testing myself, I found the function Quarter () has the error. Datetime_add works, Date() work, but Quarter() brokes my dashboard. and it happen with dataset from Google Sheet. another dataset from Bigquery still alive
I’m encountering a DATETIME_SUB related issue, similar to what others have reported. I’m trying to calculate the number of orders for the current week using a CASE statement.
Here is the formula I’m using:
SQL
CASE
WHEN
Order_Date >= DATETIME_SUB(CURRENT_DATE(), INTERVAL IF(WEEKDAY(CURRENT_DATE()) = 0, 6, WEEKDAY(CURRENT_DATE()) - 1) DAY)
AND Order_Date <= CURRENT_DATE()
THEN Order_Count
ELSE 0
END
My data source is Google Sheets.
I’m getting the following error message:
Dataset Configuration ErrorLooker Studio can't connect to the dataset.Failed to fetch data from the underlying dataset.
Could anyone please help me troubleshoot this issue? Thank you!
Do you guys think the problem is Google Sheet? maybe the datetime format from Google Sheet has some issue, so the datetime function in Looker return error.
I use the same function for data from BigQuery, but got no issue, only problem come from Google Sheet data.
I didn’t understand. And why is this error not being corrected? This is clearly a mistake. And no one writes that at least some work is currently underway to eliminate it. Why now redo a report that worked and now doesn’t work through no fault of mine?
It could be the case, but theoretically, the data in Looker Studio has already had its fields configured as date fields. That said, using BigQuery is also an excellent suggestion.
Similar error with Datetime_ADD() here, but was able to diagnose that it only breaks when using future dates. In my case, the real problem was adding a week to current date (or a month, breaks the same way). Trying to read the Week number of a future date (or the Month number) breaks the report. .
this doesnt work (Weeknumber is the fieldname):
if(Weeknumber = WEEK(TODAY()),“This week”,
if(Weeknumber = WEEK(DATETIME_ADD(TODAY(), INTERVAL 1 WEEK)),“Next week”, “None”))
I use these functions to create blends where I can put month and month and year on year comparisons in the same table. Using WEEK(), MONTH(), or YEAR() on a datetime add function failed.
However I found that I could bypass the DATETIME_ADD function by simply using MONTH(my_date)+1 and it would add a single month as expected and turn it into an integer. While not the best for viewing in tables, it allowed me to build my month on month blends (in combination with a CASE WHEN for the end of the year)
I would still like to see a fix for this sometime soon!
My code for reference:
To get the current month as an integer: Month(Date)+0
To get the next month as an integer:
CASE
WHEN MONTH(Date) = 12 THEN 1
ELSE MONTH(Date) + 1
END