I have been working on a report based on queries trying to, essentially, have multiple reports in one.
I'll try and explain it the best I can...
My report needs to have and/or needs to be based off of the following items:
- Assignee
- Mnemonic
- PracticeMHMDDept
- PracticeStatus
- ProviderMHMDDept
- ProviderStatus
The reasoning behind have separate Practice & Provider MHMDDept is because 1 practice(a group) can have 5 providers. Of those 5 providers, 4 have an MHMDDept of 'APCP' and 1 has an MHMDDept of 'APP'.
On the zipped database attached, qryAPPNumProvandPract AND qryAPCPNumProvPract (both based off qryPerMnemonic) are pulling the numbers I am wanting in a report. However, for the purpose of this database, we are not wanting multiple reports to have to go through. We are wanting to see the Assignee and the number of practices they have based on the status'/dept. When trying to combine the queries, the numbers are not calculating correctly and therefore i'm not able to combine them into one report. I have shown a table example below of what I am looking for in the final product:
ASSIGNEE Total APCP Practices Total APCP Providers Total APP Practices Total APP Providers Amy 22 44 0 0 Angela 7 19 5 30 Bill 13 26 0 0 Devyn 11 27 8 21 Haley 5 17 0 0 Jackie 7 13 0 0 Janet 13 40 0 0 Javier 16 30 0 0 Lindsey 2 4 0 0 Michele 7 9 0 0 Rebecca 7 16 3 23
Column #2: Count Total APCP Practices if the PracticeMHMDDept = 'APCP' and the PracticeStatus = 'REA'.
Column #3: Total APCP Providers is the sum of countofproviders if ProviderMHMDDept = 'APCP' and the ProviderStatus = 'Active'
Column #4: Count the Total APP Practices if PracticeMHMDDept = 'APP' and the PracticeStatus = 'REA'
Column #5: Total APP Providers is the sum of countofproviders if ProviderMHMDDept = 'APP' and the ProviderStatus = 'Active'
I want this to be grouped like above per Assignee.
Can anyone PLEASEPLEASE
PLEASE help get this information onto 1 report. I am now going in circles.
REATEST07.19.zip