Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Re: How to calculate last 12 months, 6 months, 3 months data in report

$
0
0

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


Viewing all articles
Browse latest Browse all 9193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>