Hi Remi,
WhilePrintingRecords;
NumberVar Cash_total_12 months;
If Month ({@Month_PostDate}) In [(Month {?StartPostDate} - 11) to Month {?StartPostDate}] Then
Cash_total_12 months := Cash_total_12 months + {@Cash_Total};
The variable can't be a formula. You can pass the variable to a formula. Have a look in the Crystal documenation for Running Total examples for more information.
Thanks,
Brian