Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Current date Post Reply Post New Topic
Author Message
vpriyanka2001
Groupie
Groupie


Joined: 28 May 2009
Online Status: Offline
Posts: 59
Quote vpriyanka2001 Replybullet Topic: Current date
     Posted: 29 Apr 2013 at 8:31am
Date question.
 
As per current report it shows Calls answered =1 if it is 1 in the DB but if I have full month dates in DB it shows all the dates.
 
 2 fields I am using from DB are :
1. Group 1 Call start time , Ascending order , each day.
2. Summarized  Agent name, Count , grand total : count agent name
 
1 Formula
datediff ("s", {Sheet1_.Call Start Time},{Sheet1_.Call End Time})
 
Current date for .xls database is 1 day before and for monday means last friday.
 
Please Please need help urgently!!!

IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 30 Apr 2013 at 12:18am
Hi

Go in Report Menu--Selection Formula--Record and use below formula :

If weekdayname(dayofweek(currentdate)) = "Friday" Then
{datefield} = currentdate-3
else
{datefield} = currentdate-1

Note : you need to replace {datefield} with your actual shett1.datefield
Thanks,
Sastry
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