Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Calculate Week Post Reply Post New Topic
Author Message
lahorichick
Groupie
Groupie


Joined: 13 Aug 2009
Online Status: Offline
Posts: 54
Quote lahorichick Replybullet Topic: Calculate Week
     Posted: 18 Sep 2009 at 11:40am

I have this formula for Day:


if GroupName ({INVOICE.DATE}, "monthly") =  "1/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/22 else
if GroupName ({INVOICE.DATE}, "monthly") =  "2/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/20 else
if GroupName ({INVOICE.DATE}, "monthly") =  "3/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/23 else
if GroupName ({INVOICE.DATE}, "monthly") =  "4/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/20 else
if GroupName ({INVOICE.DATE}, "monthly") =  "5/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/21 else
if GroupName ({INVOICE.DATE}, "monthly") =  "6/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/22 else
if GroupName ({INVOICE.DATE}, "monthly") =  "7/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/20 else
if GroupName ({INVOICE.DATE}, "monthly") =  "8/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/23 else
if GroupName ({INVOICE.DATE}, "monthly") =  "9/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/20 else
if GroupName ({INVOICE.DATE}, "monthly") =  "10/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/22 else
if GroupName ({INVOICE.DATE}, "monthly") =  "11/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/20 else
if GroupName ({INVOICE.DATE}, "monthly") =  "12/2009" then
Count ({INVOICE.TRANSNBR}, {INVOICE.DATE}, "monthly")/20
 
How do I calculate week?
 
Month was a simple distinct count because I have the invoices running for 1 month period in select expert.
 
 
IP IP Logged
Jyothi Yepuri
Senior Member
Senior Member


Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Quote Jyothi Yepuri Replybullet Posted: 20 Sep 2009 at 9:47pm
what exactly these numbers you are dividing with?
no of working days?

Jyothi
IP IP Logged
lahorichick
Groupie
Groupie


Joined: 13 Aug 2009
Online Status: Offline
Posts: 54
Quote lahorichick Replybullet Posted: 22 Sep 2009 at 7:06am
Yes
IP IP Logged
Jyothi Yepuri
Senior Member
Senior Member


Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Quote Jyothi Yepuri Replybullet Posted: 22 Sep 2009 at 4:19pm
Do you need to find no of weeks in a month?
is your week starts on monday?

can you explain in detail.

Jyothi
IP IP Logged
lahorichick
Groupie
Groupie


Joined: 13 Aug 2009
Online Status: Offline
Posts: 54
Quote lahorichick Replybullet Posted: 23 Sep 2009 at 5:11am
never mind...i figured it out...thank you though..
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum