Solved

Need to group by week ending date in Crystal Reports 2008

Posted on 2011-09-27
6
995 Views
Last Modified: 2012-05-12
How can I adjust this formula so that my end result is Group by week with the week ending day of Saturday? Currently is being displayed and grouped by the week beginning day of Sunday.

{BAQReportResult.LaborDtl.PayrollDate} +
(7 - DayofWeek({BAQReportResult.LaborDtl.PayrollDate},crSunday))

Thanks in advance for the help! I apologize if the answer I need is within my other question but I haven't quite got a grasp on date formulas to fully understand how to piece them together..
0
Comment
Question by:SeyerIT
  • 4
  • 2
6 Comments
 
LVL 2

Author Comment

by:SeyerIT
Comment Utility
My zones aren't displaying correctly on my webpage and it's making it impossible to select the correct one.. The primary zone for this should be Crystal Reports.
0
 
LVL 2

Author Comment

by:SeyerIT
Comment Utility
groups not displaying correctly
0
 
LVL 19

Accepted Solution

by:
GJParker earned 500 total points
Comment Utility
Create a second formula that converts your formulas result to the previous saturday

i.e.

{@YourFormula} - (DayOfWeek({@YourFormula}, crSaturday) - 1)

HTH
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Author Comment

by:SeyerIT
Comment Utility
GJ, I just tried that and it is still grouped by week beginning of Sunday..
0
 
LVL 19

Assisted Solution

by:GJParker
GJParker earned 500 total points
Comment Utility
Change the group option from weekly to each day
0
 
LVL 2

Author Comment

by:SeyerIT
Comment Utility
AH yes! That does the trick.. Now, is there a way for me to be sure the months are grouped correctly? Perhaps I should ask this as a different question and relate to this thread?

For instance, week ending 4/2 is being grouped in April instead of March.. I would like to group the week into which month the first 3 days fall into. In other words, 4/2, Saturday falls in April but Monday through Wednesday falls in March. Therefore I would like this week to be grouped with March. Basically whichever month the majority of the days (mon - fri) fall into, I want to fall into that month.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now