Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid end_date value for 'Over Time' period #90

Open
pleskava opened this issue Jan 22, 2024 · 0 comments
Open

Invalid end_date value for 'Over Time' period #90

pleskava opened this issue Jan 22, 2024 · 0 comments

Comments

@pleskava
Copy link

end_date for the query is null if &end_date' = '9999-12-31' (Over Time period)

WITH PeriodSelection as (
     select date('&begin_date', 'start of month') begin_date
         , date('&end_date', 'start of month', '+1 month', '-1 day') end_date
 )

Please, replace by

WITH PeriodSelection as (
     select date('&begin_date', 'start of month') begin_date
         IIF(date('&end_date') > date('9999-12-30') , date('9999-12-31'),  date('&end_date', 'start of month', '+1 month', '-1 day') )  end_date
 )

or change max value of period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant