INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Grouping based an date ranges

Grouping based an date ranges

(OP)
I have a formula if {Fish.Date} in Date (2016, 08, 01) to Date (2016, 10, 31) then "1st Quarter" else
if {Fish.Date} in Date (2016, 11, 01) to Date (2017, 01, 31) then "2nd Quarter" else
if {Fish.Date} in Date (2017, 02, 01) to Date (2017, 04, 30) then "3rd Quarter" else
if {Fish.Date} in Date (2017, 05, 01) to Date (2017, 07, 31) then "4th Quarter"
When i group, based on the this formula it doesn't always return the data as expected.
Most of the time i get
1st Quarter data data data
2nd Quarter data data data
3rd Quarter data data data

but sometimes it returns 2nd Quarter data data data
3rd Quarter data data data
1st Quarter data data data

or 2nd Quarter data data data
1st Quarter data data data
3rd Quarter data data data

Any Ideas.

RE: Grouping based an date ranges

Do you have any other groups above this group?

RE: Grouping based an date ranges

(OP)
Yes, Group 1 is Farm, Group 2 Quarter

RE: Grouping based an date ranges

That's why - it first groups on Farm and then on Quarter.

I am not exactly sure how you need it, but maybe you can try to combine the groups the way you need by creating a formula like:

@CombinedGroup
@QuarterGroup &" "& {TABLE.YourFarmField]


Change QuarterGroup to the name of the formula you have listed in your first post.
Group by @CombinedGroup and delete the other two groups.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close