thementornetwork
MIS
Trying desperately to figure out how I can retrieve duplicate or overlapping service entries only.
ie:
01/06/2007 10:00am 10:15am BALL, MANDI
01/06/2007 1:20pm 1:40pm BALL, MANDI
01/06/2007 1:20pm 1:40pm BALL, MANDI
01/06/2007 1:30pm 2:30pm BALL, MANDI
01/06/2007 4:00pm 5:00pm BALL, MANDI
To retrieve days with multiple services, I added this to the Report Selection Formulas > Group:
COUNT({billing_tx_charge_detail.date_of_service},{billing_tx_charge_detail.date_of_service}) > 1
Now comes the tricky part. How can I suppress all the records that ARE NOT overlapping or duplicated and display only the ones that are "bad"?
That means, I shouldn't be seeing the first nor the last entry in the example above because they are not overlapping with anything else and are not duplicated services:
01/06/2007 10:00am 10:15am BALL, MANDI
01/06/2007 4:00pm 5:00pm BALL, MANDI
Here's the code I wrote in the Suppress option of Details:
IF (({billing_tx_history.end_time} IN Previous({billing_tx_history.start_time}) to Previous({billing_tx_history.end_time}))
OR
({billing_tx_history.start_time} IN Next({billing_tx_history.start_time}) to Next({billing_tx_history.end_time})))THEN
FALSE
ELSE
TRUE
It still brings me everything... =(. Please help me if you have written a similar report before. Thanks.
ie:
01/06/2007 10:00am 10:15am BALL, MANDI
01/06/2007 1:20pm 1:40pm BALL, MANDI
01/06/2007 1:20pm 1:40pm BALL, MANDI
01/06/2007 1:30pm 2:30pm BALL, MANDI
01/06/2007 4:00pm 5:00pm BALL, MANDI
To retrieve days with multiple services, I added this to the Report Selection Formulas > Group:
COUNT({billing_tx_charge_detail.date_of_service},{billing_tx_charge_detail.date_of_service}) > 1
Now comes the tricky part. How can I suppress all the records that ARE NOT overlapping or duplicated and display only the ones that are "bad"?
That means, I shouldn't be seeing the first nor the last entry in the example above because they are not overlapping with anything else and are not duplicated services:
01/06/2007 10:00am 10:15am BALL, MANDI
01/06/2007 4:00pm 5:00pm BALL, MANDI
Here's the code I wrote in the Suppress option of Details:
IF (({billing_tx_history.end_time} IN Previous({billing_tx_history.start_time}) to Previous({billing_tx_history.end_time}))
OR
({billing_tx_history.start_time} IN Next({billing_tx_history.start_time}) to Next({billing_tx_history.end_time})))THEN
FALSE
ELSE
TRUE
It still brings me everything... =(. Please help me if you have written a similar report before. Thanks.