-
Notifications
You must be signed in to change notification settings - Fork 14
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
GROUP BY and financial year #37
Comments
It would be sufficient to provide a function that return the fiscal year given a dare, then you can simply do
However, the fiscal year end is not an universal definition. Assuming for simplicity that we care only about fiscal years that have a one calendar year duration, the function would need to take the fiscal year end or start date as a parameter, probably as a two integers for month and day, but this results in quite an ugly interface:
I don't have better ideas. |
Another approach could be a Looking at the PostgreSQL documentation, if the fiscal year is uniform, also something like the |
@tbm I just merged the implementation of the
should work, replacing |
I've done some tests and this seems to work as expected, thank you! |
Thanks for testing. The implementation of |
Unfortunately, the financial year is not the calendar year.
It would be nice for BQL to somehow have the concept of a financial year.
(FWIW, Fava has support for financial years)
The text was updated successfully, but these errors were encountered: