Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing and Suppressing the records 1

Status
Not open for further replies.

cdnamm

Programmer
Oct 25, 2002
41
US
Hi all,
I need to suppress the records if the Dates of Service in the detail line are not the same. Could anyone help me?
Thanks!
 
Right-click on &quot;Details&quot; section, Format Section...click on the pencil button next to &quot;Suppress (No Drill-Down)&quot; label. In the Format Formula Editor enter: table.date1 <> table.date2
This will suppress detail section when dates are not equal.
 
Hi LV,
The Date1 and Date2 as you referred are actually one field (Date of service (DOS)). Since, I can have multiple DOS on the detail line and I want to suppress the detail records with different DOS. Therefore, I can't use your suggestion.
Do you have any other suggestion for me? Thank you in advance!
cdnamm
 
You mean, you want to compare a previous value to a current one? Otherwise, how do you get multiple values of the same field displayed on the same detail line item?
 
Hi LV,
Yes, I want to compare the previous to the current.
Thanks!
 
Try posting sample data and desired output.

If you mean that you want only the first date for a group of rows, try something like the following in the suppress formula for the detail:

previous({MyTable.ServiceDate}) <> {MyTable.ServiceDate}

-k kai@informeddatadecisions.com
 
Hi,
Here is an example of the data

Group by Claim Number
200000190902 (Claim Number)
DOS copay
08/11/2002 $10.00
08/11/2002 $10.00

200000184543
DOS copay
09/12/2002 $5.00
11/05/2002 $9.00

I wanted to suppress the group header where the DOSs are different.
Thanks
 
Add a distinct count total on the date field. Then go into Format Section on the group header and add a formula like this:
if DistinctCount ({table_name.dos}, {group}) > 1 then true
else false
Hope this helps.
 
Hi slizzo,
I tried your way and it worked!
Thanks!
cdnamm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top