it works fine when the MonthYear DimensionRow Dimension like in the straight Table,
but when i move the MonthYear Dimension up, Column Dimension like in Pivot table or use same expression in chat it goes wrong, Because it works only with row.
Please check the excel attached so you can understand more.