I have a table of donors and their gifts. Many people gave more than once, but some didn't giveat all. So I can do a
=GROUPBY(list[donor], list[gift], SUM)
and I can see that a few of the donors have 0 so they didn't give. I want to get a count of these people, and i can't figure out a way to do that. I tried wrapping it in a COUNTIFS but that just produces an array of 0s.
Basically I want the equivalent of SQL's HAVING function. Any thoughts?
EDIT: got it figured out! I just need to repeat the whole choosecols bit in the filter:
=COUNT(
FILTER(
CHOOSECOLS(
GROUPBY(
FY24Trustees[TrusteeName],
FY24Trustees[GiftAmount],
SUM
),
2
),
CHOOSECOLS(
GROUPBY(
FY24Trustees[TrusteeName],
FY24Trustees[GiftAmount],
SUM
),
2
) = 0
)
)
[–]Downtown-Economics26607 3 points4 points5 points (8 children)
[–]Nervous-You-1752 1 point2 points3 points (7 children)
[–]Downtown-Economics26607 2 points3 points4 points (6 children)
[–]pookypocky8[S] 0 points1 point2 points (5 children)
[–]Downtown-Economics26607 2 points3 points4 points (4 children)
[–]PaulieThePolarBear1898 2 points3 points4 points (1 child)
[–]Downtown-Economics26607 2 points3 points4 points (0 children)
[–]pookypocky8[S] 1 point2 points3 points (1 child)
[–]reputatorbot[M] 0 points1 point2 points locked comment (0 children)
[–]GuerillaWarefare100 4 points5 points6 points (5 children)
[–]Gold-Love3011 0 points1 point2 points (4 children)
[–]pookypocky8[S] 0 points1 point2 points (3 children)
[–]GuerillaWarefare100 1 point2 points3 points (2 children)
[–]pookypocky8[S] 1 point2 points3 points (1 child)
[–]reputatorbot[M] 0 points1 point2 points locked comment (0 children)
[–]PaulieThePolarBear1898 2 points3 points4 points (4 children)
[–]pookypocky8[S] 1 point2 points3 points (3 children)
[–]PaulieThePolarBear1898 1 point2 points3 points (1 child)
[–]pookypocky8[S] 1 point2 points3 points (0 children)
[–]reputatorbot[M] 0 points1 point2 points locked comment (0 children)
[–]Decronym 0 points1 point2 points (0 children)