Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Defining Timeliness and then counting timely & Not Post Reply Post New Topic
Page  of 2 Next >>
Author Message
Babea
Newbie
Newbie
Avatar

Joined: 07 Mar 2012
Location: United States
Online Status: Offline
Posts: 12
Quote Babea Replybullet Topic: Defining Timeliness and then counting timely & Not
    Posted: 07 Mar 2012 at 6:43am
Hi,
 
I am measuring production, and I need to count the number of dinstinct clients (many appeals) that were completed timely & untimely.
 
Timely is equal to the following:
 
IIF ({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30, "Timely", "Untimely")
 
OR
 
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
{APPEAL.PEPPERS_DELAY} = Not null   OR
{HEARINGAPPEAL.HEARING_TYPE} ="R" then 
    "Timely"
Else "Untimely"
 
I need to account for both of the above situations, but I have not been able to make both of them work. Plus, I am not sure if I am trying to make it happen in the right way. Currently, I am trying to use the above in a formula.
 
Pretty Please & Thanks in advance for any suggestions that you may have for me.
Thanks! Babea
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 07 Mar 2012 at 7:28am
if ({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30)
or
(
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
((not isnull({APPEAL.PEPPERS_DELAY})) or
{HEARINGAPPEAL.HEARING_TYPE} ="R" )
)
then "Timely" Else "Untimely"
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 07 Mar 2012 at 7:29am
assuming that works you can use this same condtion to do a conditional running total as a distinctcount of the clientid.
IP IP Logged
Babea
Newbie
Newbie
Avatar

Joined: 07 Mar 2012
Location: United States
Online Status: Offline
Posts: 12
Quote Babea Replybullet Posted: 07 Mar 2012 at 7:56am
You are brilliant!
 
What is a conditional total? How do I do that?
 
Thank you very much!!
Babea
Thanks! Babea
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 07 Mar 2012 at 8:02am

create a new running total called TimelyCount

(right click on Running Toal ans select New)
field to summarize=clientid
type=distinctcount
evaluate=usea  formula
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30)
or
(
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
((not isnull({APPEAL.PEPPERS_DELAY})) or
{HEARINGAPPEAL.HEARING_TYPE} ="R" )
)
reset=never
place in report footer
 
same for untimely but evaluate formual is
NOT(({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30)
or
(
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
((not isnull({APPEAL.PEPPERS_DELAY})) or
{HEARINGAPPEAL.HEARING_TYPE} ="R" )
))
 
IP IP Logged
Babea
Newbie
Newbie
Avatar

Joined: 07 Mar 2012
Location: United States
Online Status: Offline
Posts: 12
Quote Babea Replybullet Posted: 07 Mar 2012 at 10:05am
Thank you very much! Babea Clap
Thanks! Babea
IP IP Logged
Babea
Newbie
Newbie
Avatar

Joined: 07 Mar 2012
Location: United States
Online Status: Offline
Posts: 12
Quote Babea Replybullet Posted: 08 Mar 2012 at 1:47am
I am getting an error message that part of it is not part of the formula.
 
It selects this part:
reset=never
place in report footer
 
same for untimely but evaluate formual is
NOT(({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30)
or
(
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
((not isnull({APPEAL.PEPPERS_DELAY})) or
{HEARINGAPPEAL.HEARING_TYPE} ="R" )
))
Thanks! Babea
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Mar 2012 at 3:49am
reset= never is the last setting in the RT set up
place in report footer is the direction of where to place the RT in the report canvas after you are donw creting it. Running Totals do not work in headers.
IP IP Logged
Babea
Newbie
Newbie
Avatar

Joined: 07 Mar 2012
Location: United States
Online Status: Offline
Posts: 12
Quote Babea Replybullet Posted: 08 Mar 2012 at 4:56am
I am still creating the running total in the edit mode. When I save or check code, it tells me the red area is not part of the formula.
 
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30)
or
(
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
((not isnull({APPEAL.PEPPERS_DELAY})) or
{HEARINGAPPEAL.HEARING_TYPE} ="R" )
)
reset=never
place in report footer
 
same for untimely but evaluate formual is
NOT(({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30)
or
(
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
((not isnull({APPEAL.PEPPERS_DELAY})) or
{HEARINGAPPEAL.HEARING_TYPE} ="R" )
))
Thanks! Babea
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Mar 2012 at 5:04am
only use this blue in the evaluate formula in the first Running Total
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30)
or
(
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
((not isnull({APPEAL.PEPPERS_DELAY})) or
{HEARINGAPPEAL.HEARING_TYPE} ="R" )
)
 
Once you save that the next section the RT is the RESET setting.
use NEVER ... "reset=never"
Save the Running TOtal
Drag and drop it from the field explorer on the report Footer.... "place in report footer"
Create New Running Total called UNtimelyCount

Field to summarize=clientid

type=distinctcount
evaluate=usea  formula
NOT(({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 30)
or
(
({DISPOSITION.DISPOSITIONENTRY_DATE}-{APPEAL.REQUEST_DATE} <= 90) AND
((not isnull({APPEAL.PEPPERS_DELAY})) or
{HEARINGAPPEAL.HEARING_TYPE} ="R" )
))
save the formula
reset =Never
drag and drop in the report footer
 


Edited by DBlank - 08 Mar 2012 at 5:05am
IP IP Logged
Page  of 2 Next >>
Post Reply Post New Topic
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



This page was generated in 0.016 seconds.