-
I have this notebook that calculates GDD (Growing Degree Days) for temperatures read by a sensor. The date filters work fine in the notebook. I have used the same code in a Data App, but I cannot get the data from the Date Inputs (i..e the range) to be read by the sql statement. Here are two different ways I've tried:
and
In both cases, I get an error message, however when I hard code the dates it works fine. TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I don’t think you want the quotes around the interpolated values. The SQL code block or template literal will take care of escaping for you. |
Beta Was this translation helpful? Give feedback.
You probably want
fechas[1]
andfechas[2]
to be Date instances. Then you shouldn’t need the CAST.