so why not do your left joins with no select criteria
conditionally suppress the detail rows with
NOT (fli_id in [11,14])
this should get to showing the data
for counting I am still not sure if you want a count or a distinctcount but assuming you want a distinct count use
DISTINCTCOUNT(inp_id)
then for a distincy count of patients that had 11
running total as
name=11
field to summarize=inp_id
type=distinctcount
evalaute =use a formula
flo_id=11
reset=never
place in report footer (RTs won't work in headers)
for 14 repeat but chaneg the evaluate formula to use that
Does that do what you need?
Edited by DBlank - 16 Sep 2010 at 4:39am