KalebsDad78
Technical User
I have scoured the internet searching for the best suppression formula to use here and I have been unsuccessful. I am trying to suppress the GH when the Details section is suppressed based on already used suppression formula in the details section.
I have a customer (patients) report that pulls any patient that an ambulance was sent to them two or more times in less than a 24 hour period. The formula I have in the details suppression section, which works great, is this:
(
(
onfirstrecord or
{Customers.name} <> previous({Customers.name})
) and
{Customers.name} = next({Customers.name}) and
datediff("h",{@Cdate},next({@Cdate})) > 24
) or
(
(
onlastrecord or
{Customers.name} <> next({Customers.name})
) and
{Customers.name} = previous({Customers.name}) and
datediff("h",previous({@Cdate}),{@Cdate}) > 24
) or
(
{Customers.name} = previous({Customers.name}) and
datediff("h",previous({@Cdate}),{@Cdate}) > 24 and
{Customers.name} = next({Customers.name}) and
datediff("h",{@Cdate},next({@Cdate})) > 24
)
or
count({@Cdate},{Customers.name}) = 1
However, it pulls every single customer/patient name to which we sent ambulance but nulls the details section for those patients that do not meet the criteria above (Screenshot attached). It still shows their name though and adds a lot of extra, unnecessary data to the report. Finding the proper suppression formula would take this from 200 pages probably down to 20. I want to suppress the Group Header when the details section for that patient is also blank.
Any help is appreciated.
Thank you!
I have a customer (patients) report that pulls any patient that an ambulance was sent to them two or more times in less than a 24 hour period. The formula I have in the details suppression section, which works great, is this:
(
(
onfirstrecord or
{Customers.name} <> previous({Customers.name})
) and
{Customers.name} = next({Customers.name}) and
datediff("h",{@Cdate},next({@Cdate})) > 24
) or
(
(
onlastrecord or
{Customers.name} <> next({Customers.name})
) and
{Customers.name} = previous({Customers.name}) and
datediff("h",previous({@Cdate}),{@Cdate}) > 24
) or
(
{Customers.name} = previous({Customers.name}) and
datediff("h",previous({@Cdate}),{@Cdate}) > 24 and
{Customers.name} = next({Customers.name}) and
datediff("h",{@Cdate},next({@Cdate})) > 24
)
or
count({@Cdate},{Customers.name}) = 1
However, it pulls every single customer/patient name to which we sent ambulance but nulls the details section for those patients that do not meet the criteria above (Screenshot attached). It still shows their name though and adds a lot of extra, unnecessary data to the report. Finding the proper suppression formula would take this from 200 pages probably down to 20. I want to suppress the Group Header when the details section for that patient is also blank.
Any help is appreciated.
Thank you!