ASKER
if {WO.REQUESTDATE} > {?Start Date} and {WO.REQUESTDATE} < {?End Date}
AND isnull ({WO.COMPLETIONDATE}) Then
1
else
0
ASKER
ASKER
if {WO.COMPLETIONDATE} > {?Start Date} and {WO.REQUESTDATE} < {?End Date}
AND NOT isnull({WO.COMPLETIONDATE}) Then
1
else
0
ASKER
if {WO.COMPLETIONDATE} < {?Start Date} and {WO.COMPLETIONDATE} < {?End Date}
AND not isnull ({WO.COMPLETIONDATE}) Then
1
else
0
should beif not isnull ({WO.COMPLETIONDATE}) and
{WO.COMPLETIONDATE} < {?Start Date} and {WO.COMPLETIONDATE} < {?End Date} Then
1
else
0
If the IsNull test is true, Not IsNull will be false, and CR will stop evaluating the tests at that point.ASKER
... this would be records where the close date is after the start date and the completion date is before the start date or maybe blank. Togeter with wo where the request date falls between the start and end dateAre those two separate sets of conditions? For example, if REQUESTDATE is between {?Start Date} and {?End Date}, you want to see the record, regardless of the values in CLOSEDATE and COMPLETIONDATE.
ASKER
ASKER
The current record selection is only giving records where there is a completion date, somehow it need something like or isnull {WO.COMPLETIONDATE} addedThe record selection formula in the report that you posted already has that. The following is copied from that formula:
Also the current completed Received should only be 1 if the completion date fall between the start and end dates.In an earlier post (a few days ago), you said "The completed received is the sum of work orders completed that have a request date within the start ad end dates", so I changed {@Completed Recieved} to check REQUESTDATE, instead of COMPLETIONDATE. If you actually want to check Completion date there, just replace the two WO.REQUESTDATE references in that formula with WO.COMPLETIONDATE. In that case, your old formula was mostly correct, except for the fact that the IsNull test should be first.
ASKER
{WO.SITEID} = {?Site} AND
(
(
isnull ({WO.COMPLETIONDATE}) and
Not IsNull({WO.CLOSEDATE})
)
OR
{WO.REQUESTDATE} > {?Start Date}
)
ASKER
{WO.SITEID} = {?Site} AND
(
(
isnull ({WO.COMPLETIONDATE}) and
IsNull({WO.CLOSEDATE})
)
OR
{WO.REQUESTDATE} > {?Start Date}
)
ASKER
ASKER
{WO.SITEID} = {?Site} and
(
(
{WO.REQUESTDATE} < {?Start Date} AND
(
isnull ({WO.COMPLETIONDATE}) OR
IsNull({WO.CLOSEDATE}) OR
{WO.COMPLETIONDATE} > {?Start Date} OR
{WO.CLOSEDATE} > {?Start Date}
)
)
OR
(
{WO.REQUESTDATE} > {?Start Date} AND
{WO.REQUESTDATE} <= {?End Date}
)
)
ASKER
{WO.SITEID} = {?Site} and
(
(
{WO.REQUESTDATE} < {?Start Date} AND
(IsNull ({WO.COMPLETIONDATE}) OR {WO.COMPLETIONDATE} > {?Start Date}) AND
(IsNull({WO.CLOSEDATE}) OR {WO.CLOSEDATE} > {?Start Date})
)
OR
(
{WO.REQUESTDATE} > {?Start Date} AND
{WO.REQUESTDATE} <= {?End Date}
)
)
ASKER
{WO.SITEID} = {?Site} and
(
(
{WO.REQUESTDATE} < {?Start Date} AND
(IsNull ({WO.COMPLETIONDATE}) OR {WO.COMPLETIONDATE} > {?Start Date}) AND
(IsNull({WO.CLOSEDATE}) OR {WO.CLOSEDATE} = Date (1900, 1, 1) OR {WO.CLOSEDATE} > {?Start Date})
)
OR
(
{WO.REQUESTDATE} > {?Start Date} AND
{WO.REQUESTDATE} <= {?End Date}
)
)
ASKER
ASKER
ASKER
ASKER
Crystal Reports is a business intelligence application from SAP SE. It is used to graphically design data connections and report layouts from a wide range of data sources including Excel spreadsheets, Oracle, SQL Server databases and Access databases, BusinessObjects Enterprise business views, and local file-system information. Report designers can place fields from these sources on the report design surface, and can also deploy them in custom formulas (using either BASIC or Crystal's own syntax), which are then placed on the design surface. Crystal Reports also supports subreports, graphing, and a limited amount of GIS functionality.
TRUSTED BY
The report is pulling all the WOs for a given Site. Summaries work on all records and ignore suppression and group selection formulas.
For the BD group, Start Backlog should only count those records that are NOT complete and were requested before the start date. YOu are counting all WOs that were requested before the start date.
I can think of 2 solutions
1. Change the selection so it only pulls the NEW WOs (Requested in the time period) or WOs that aren't complete and requested before the start date.
Open in new window
2. CHange you counting formulas to skip the closed records
Open in new window
mlmcc