Resubmitting this from a mistaken placement in Crystal Analysis:
Records in our client enrollment view contain a flag field to indicate whether or not the funding source fields are the primary source of funding, RDV_foo.Funding_Primary_YN.
An existing report selects records where Funding_Primary_YN = "Y" and totals enrollees within facility type and by facility name, e.g.
Outdoor Facilities
Enrolled
Facility A 10
Facility B 15
-----
25
Indoor Facilities
...etc...
In the above, enrollees with no primary funding source are ignored.
I've been asked to add into the report counts of enrollees who have no primary funding source. I'm not sure how to count enrollees who only have rows of Funding_Primary_YN = "N" without counting those who have rows of Funding_Primary_YN = "N" AND rows with Funding_Primary_YN = "Y" both for the same client.
Seems to me back in the day using other reporting software I could use something called a subselect or subquery to find those who had Funding_Primary_YN = "Y" and use the select statement in the main query to exclude client_ids found in the subselect. I am not able to find mention of similar functionality in Crystal Help. I was thinking of creating the counts for those with no primary funding via a subreport.
Hope this message is understandable and thanks in advance for any and all help. I do not have the access required to create stored procedures or to create or edit views.
Funding_Primary_YN presently may contain null values.
Brad Macdonald
Records in our client enrollment view contain a flag field to indicate whether or not the funding source fields are the primary source of funding, RDV_foo.Funding_Primary_YN.
An existing report selects records where Funding_Primary_YN = "Y" and totals enrollees within facility type and by facility name, e.g.
Outdoor Facilities
Enrolled
Facility A 10
Facility B 15
-----
25
Indoor Facilities
...etc...
In the above, enrollees with no primary funding source are ignored.
I've been asked to add into the report counts of enrollees who have no primary funding source. I'm not sure how to count enrollees who only have rows of Funding_Primary_YN = "N" without counting those who have rows of Funding_Primary_YN = "N" AND rows with Funding_Primary_YN = "Y" both for the same client.
Seems to me back in the day using other reporting software I could use something called a subselect or subquery to find those who had Funding_Primary_YN = "Y" and use the select statement in the main query to exclude client_ids found in the subselect. I am not able to find mention of similar functionality in Crystal Help. I was thinking of creating the counts for those with no primary funding via a subreport.
Hope this message is understandable and thanks in advance for any and all help. I do not have the access required to create stored procedures or to create or edit views.
Funding_Primary_YN presently may contain null values.
Brad Macdonald