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

Re: Rolling Six Months Data by Current Month

$
0
0

Hi Brian,

 

Thanks for your reply. I tried write separate formulae and modified a little.

 

NumberVar ADDAMONTH := 1;

 

If datepart("yyyy", {@date}) = {?PYEAR} and {@date} in DateAdd ("m",-({?TO-MONTH}+ADDAMONTH),CurrentDate) -

Day (DateAdd("m",-({?TO-MONTH}+ADDAMONTH),CurrentDate))+1 to

DateAdd ("m",-({?FROM-MONTH}+ADDAMONTH),CurrentDate) -

Day (DateAdd("m",-({?FROM-MONTH}+ADDAMONTH),CurrentDate)) then {QTY}



Thank you so much once again for sharing your knowledge.


 


Kind Regards

Aamir


Viewing all articles
Browse latest Browse all 8581

Trending Articles



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