Days Formula
I have a BSO cube with a formula for DAYS:
IF(@ISMBR("Jan","Mar","May","Jul","Aug","Oct","Dec")) 31;
ELSEIF(@ISMBR("Apr","Jun","Sep","Nov")) 30;
ELSEIF(@ISMBR("Feb") AND @REMAINDER(@CalcMgrDoubleFromString(@SUBSTRING(@NAME(@CURRMBR("Years")),2,4)) / 4) == 0) 29;
ELSEIF(@ISMBR("Feb")) 28;
ENDIF
It works correctly for the first period that appears in the SmartView pull (like if Jan is there, then Jan works - wherever it is in the spreadsheet), if Mar is the first period it works…
I've verified the formula is calculating correctly for all periods (even leap years) but not multiple periods