I have two what-if parameters: the 'cutoff day' from the prior month (the 25th in my example) and the 'as of day' for the current month (the 5th in my example).
I created a date table with a relationship to the record date of each charge and created a calculated column that classifies the date accordingly using the following formula:
NewMonth = SWITCH(TRUE() ,DAY(Date[Date])<='As Of Day'[As Of Day Value], Date[Date]-DAY(Date[Date])+1 ,DAY(Date[Date])>='Cutoff Day'[Cutoff Day Value], EOMONTH(Date[Date],0)+1 ,blank() )
The parameter settings in my example above (and all different combinations) yield some strange results on the date table:
Just in case the calculated column wasn't updating on the fly I tried grouping a matrix by NewDate-->Date:
This seems to imply that the day of April 2nd (2) is greater than than the cutoff day (5). What am I missing?
Will the calculated column update when a what-if parameter changes?