Hi, Below formula is working fine and spills result as desired, I want help to add a headings row in the top row of the spill range, my spill range has 3 columns, I want to have "Value1", "Value2","Value3" as column names. Thanks
=LET(end_of_month_dates1, EOMONTH(--Table3[Date], 0),
end_of_month_dates2, EOMONTH(--Table3[Date], -1),
unique_dates1, UNIQUE(SORT(end_of_month_dates1, , -1)),
unique_dates2, UNIQUE(SORT(end_of_month_dates2, , -1)),
current_month, INDEX(Table3[End of Month], MATCH(unique_dates1, Table3[Date], 0)),
previous_month,INDEX(Table3[End of Month], MATCH(unique_dates2, Table3[Date], 0)),
month_on_month,current_month-previous_month,
IFERROR(CHOOSE({1,2,3}, unique_dates1, current_month,month_on_month),0)
)
=LET(end_of_month_dates1, EOMONTH(--Table3[Date], 0),
end_of_month_dates2, EOMONTH(--Table3[Date], -1),
unique_dates1, UNIQUE(SORT(end_of_month_dates1, , -1)),
unique_dates2, UNIQUE(SORT(end_of_month_dates2, , -1)),
current_month, INDEX(Table3[End of Month], MATCH(unique_dates1, Table3[Date], 0)),
previous_month,INDEX(Table3[End of Month], MATCH(unique_dates2, Table3[Date], 0)),
month_on_month,current_month-previous_month,
IFERROR(CHOOSE({1,2,3}, unique_dates1, current_month,month_on_month),0)
)