I have been trying to figure out why this formula isn't working for me, it works perfectly if it is just the year but I need to count distinct individuals based on month and year in a sheet that has data spanning multiple years and months. This formula returns a 1 which I know means there's an error in it somewhere and I've just been staring at it so long I don't see it. I've got the just year one in a sheet summary at the moment and am trying to use this one in a sheet summary too. I have a separate metric sheet where I'll eventually place it with the external sheet links for columns.
=COUNT(DISTINCT(COLLECT([Student Name]:[Student Name], [Date Removed]:[Date Removed], AND(IFERROR(YEAR(@cell), 0) = 2024), IFERROR(MONTH(@cell), 0) = 5)))
I've checked all the data to make sure the dates are all dates and the names it's trying to count are all letters with no numbers.