Thank you very much , it is working. But Date order has missing.
Earlier it was calender order format. Now it is coming Ascending order after applying the FormatDate.
That’s because FormatDate() returns a string. Your options would be to either go back and try to solve the custom format issue again (that invalid template error is weird), or add the date as a hidden column that you sort on.
Hey,
I was having a similar problem.
In my case I have got amounts corresponding to date.
But when I aggregated amounts as sum for date format “Mmm-yy” and then added date column and hid it, it is no longer available in aggregated form.