=if($I$2="All",ifna(sum((FILTER(Meeting_Fixed!D:D,Meeting_Fixed!C:C=B5,Meeting_Fixed!F:F>=$C$2,Meeting_Fixed!F:F<=$D$2,Meeting_Fixed!O:O=1,Meeting_Fixed!M:M<>"closed_invalid"))),0),ifna(sum((FILTER(Meeting_Fixed!D:D,Meeting_Fixed!C:C=B5,Meeting_Fixed!F:F>=$C$2,Meeting_Fixed!F:F<=$D$2,Meeting_Fixed!O:O=1,Meeting_Fixed!G:G=$I$2,Meeting_Fixed!M:M<>"closed_invalid"))),0))