You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per definition Month to Date should return a range from the first day of the month up until now, not including today.
Similarly for Year to Date, the range should go from the first day of the year up until now, not including today.
Instead it selects the end date as the last day of the month or year. This will return wrong data in case there is already some records for today (or the future for some reason, like predictions)
Steps to Reproduce
Create a date range selector as below:
<DateRange
name=date_range
/>
Write a query that returns the selected values as strings
sql test
select
'${inputs.date_range.start}' as start,
'${inputs.date_range.end}' as end
Describe the bug
As per definition Month to Date should return a range from the first day of the month up until now, not including today.
Similarly for Year to Date, the range should go from the first day of the year up until now, not including today.
Instead it selects the end date as the last day of the month or year. This will return wrong data in case there is already some records for today (or the future for some reason, like predictions)
Steps to Reproduce
Logs
No response
System Info
Severity
annoyance
Additional Information, or Workarounds
The text was updated successfully, but these errors were encountered: