Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need to group by week ending date in Crystal Reports 2008

Posted on 2011-09-27
6
Medium Priority
?
1,023 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 2

Author Comment

by:SeyerIT
ID: 36710656
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
ID: 36710664
groups not displaying correctly
0
 
LVL 19

Accepted Solution

by:
GJParker earned 2000 total points
ID: 36710843
Create a second formula that converts your formulas result to the previous saturday

i.e.

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

HTH
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 
LVL 2

Author Comment

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

Assisted Solution

by:GJParker
GJParker earned 2000 total points
ID: 36711475
Change the group option from weekly to each day
0
 
LVL 2

Author Comment

by:SeyerIT
ID: 36711566
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

670 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