Individually I can get these things to work, however when I put them together it doesnt. Any help greatly appreciated!
doing a report on coverage. I have a list of 6 or so coverages, each person may have multiple coverages. If they have one of them I want to show that person (ID), if they have several I only want to show them once.
in record selection I have:
if isnull ({Coverage.effective_to})
and
{Patient.case_status} = "A"
then
{Coverage.coverage_plan_id} = "MEDICAID"
or
{Coverage.coverage_plan_id} = "HLTHWAVE19"
or
{Coverage.coverage_plan_id} = "MCDWAIVER"
or
{Coverage.coverage_plan_id} ="MEDIKAN"
or
{Coverage.coverage_plan_id} ="MCAID EDS"
or
{Coverage.coverage_plan_id} ="MCAID QMB"
or
{Coverage.coverage_plan_id} ="VO_MCD"
or
{Coverage.coverage_plan_id} ="MCDWAIVEDS"
or
{Coverage.coverage_plan_id} ="MCD_TRANSP"
to get rid of the duplicates in the supress in the details I put:
{coverage.patient_id}=previous({coverage.patient_id})
I also need to pick a random 25% of these people.
I did the sort by Rnd()
When I do both of things together overrides the part I added to supress in details (since they are no longer in order)
doing a report on coverage. I have a list of 6 or so coverages, each person may have multiple coverages. If they have one of them I want to show that person (ID), if they have several I only want to show them once.
in record selection I have:
if isnull ({Coverage.effective_to})
and
{Patient.case_status} = "A"
then
{Coverage.coverage_plan_id} = "MEDICAID"
or
{Coverage.coverage_plan_id} = "HLTHWAVE19"
or
{Coverage.coverage_plan_id} = "MCDWAIVER"
or
{Coverage.coverage_plan_id} ="MEDIKAN"
or
{Coverage.coverage_plan_id} ="MCAID EDS"
or
{Coverage.coverage_plan_id} ="MCAID QMB"
or
{Coverage.coverage_plan_id} ="VO_MCD"
or
{Coverage.coverage_plan_id} ="MCDWAIVEDS"
or
{Coverage.coverage_plan_id} ="MCD_TRANSP"
to get rid of the duplicates in the supress in the details I put:
{coverage.patient_id}=previous({coverage.patient_id})
I also need to pick a random 25% of these people.
I did the sort by Rnd()
When I do both of things together overrides the part I added to supress in details (since they are no longer in order)