For the “12 Mo Rolling Enrollment”, I want to return blank for dates between dates 1/1/1991 and 11/1/1991 using the DATESBETWEEN () and blank () functions as shown in the formula below, but the formula is returning blanks for all dates. What am I doing wrong? Any help would be greatly appreciated. Thanks.
=IF(CALCULATE(SUM ( Population[Enrollment] ), DATESBETWEEN(Calendar[Month], DATE(1991,1,1), DATE(1991,11,1) )), BLANK(), (CALCULATE (
SUM ( Population[Enrollment] ),
FILTER (
ALL ( Calendar ),
Calendar[DateID]
>= MIN ( Calendar[DateID] ) - 11
&& Calendar[DateID] <= MAX ( Calendar[DateID] )
)
)
)
)
=IF(CALCULATE(SUM ( Population[Enrollment] ), DATESBETWEEN(Calendar[Month], DATE(1991,1,1), DATE(1991,11,1) )), BLANK(), (CALCULATE (
SUM ( Population[Enrollment] ),
FILTER (
ALL ( Calendar ),
Calendar[DateID]
>= MIN ( Calendar[DateID] ) - 11
&& Calendar[DateID] <= MAX ( Calendar[DateID] )
)
)
)
)