Location | Department | Year | Month | Value |
Main | Internal Medicine | 2023 | Jan | 2,101 |
Main | Internal Medicine | 2023 | Feb | 1,833 |
Main | Internal Medicine | 2024 | Jan | 2,138 |
Main | Internal Medicine | 2024 | Feb | - |
Park | Internal Medicine | 2023 | Jan | - |
Park | Internal Medicine | 2023 | Feb | 500 |
Park | Internal Medicine | 2023 | Mar | - |
Park | Internal Medicine | 2024 | Jan | 178 |
Park | Internal Medicine | 2024 | Feb | - |
Main | Pediatrics | 2023 | Jan | 2,411 |
Main | Pediatrics | 2023 | Feb | 2,150 |
Main | Pediatrics | 2024 | Jan | 1,915 |
Main | Pediatrics | 2024 | Feb | - |
Park | Pediatrics | 2023 | Jan | - |
Park | Pediatrics | 2023 | Feb | - |
Park | Pediatrics | 2024 | Jan | 1,018 |
Park | Pediatrics | 2024 | Feb | - |
Holmdel | Dental | 2023 | Jan | 2,475 |
Holmdel | Dental | 2023 | Feb | 2,283 |
Holmdel | Dental | 2024 | Jan | 2,657 |
Holmdel | Dental | 2024 | Feb | - |
Holmdel | Pediatrics | 2023 | Jan | 542 |
Holmdel | Pediatrics | 2023 | Feb | 365 |
Holmdel | Pediatrics | 2024 | Jan | 478 |
Holmdel | Pediatrics | 2024 | Feb | - |
I have the above Table. I want to use Sumifs to add the values for multiple Locations and Department data, which will be linking to Dynamic lists. So my list(s) may have 1 location and 1 department or 5 locations and 3 departments, etc. I was using something like this, but it was giving me inaccurate results:
=sum(SUMIFS(EncounterData[Value],EncounterData[Location],UNIQUE(FILTER(O1:O5,O1:O5<>"")),EncounterData[Department],UNIQUE(FILTER(P1:P5,P1:P5<>"")),EncounterData[Month],M1))
Any help would be greatly appreciated.
Last edited by a moderator: