-
Notifications
You must be signed in to change notification settings - Fork 235
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
[Idea] Group by fiscal year #263
Comments
Hey @jonathanloos, thanks for the suggestion. Added support in the year_start branch if you want to try it (it outputs the date the year starts rather than Jan 1). Still deciding if it's worth the additional complexity to support. User.group_by_year(:created_at, year_start: :april).count Edit: added code example |
@ankane sorry for the delay, will look at in shortly! |
Hi Gyus, Any update on the feature of group by fiscal year? As I can see above there is a branch that implement this feature but not yet merge into master. I saw the code and test as well, it will work as expected. Do you guys have any plan to merge this? |
Hi @Sumit-Gems, don't think I want to support the extra complexity at this point. |
Hey everyone,
First off I would like to say how amazing groupdate has been to use on our platform so thank you from us at Harled.
I would like to propose the feature of grouping data by fiscal year as we've had quite a few needs surrounding it.
Example data:
Given a queryable set:
Example output:
Additionally this will likely require the configuration of the "start date of a fiscal year" as it's not the same across the board.
Let me know if you need any other info 🙂
The text was updated successfully, but these errors were encountered: