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

Re: How to refer Last Year data of same month

$
0
0

I would avoid mixing virtual variables with time shifts. I've found them unreliable and am pretty sure I recall a section in training that says not to use them in combination.

 

Instead I'd create a real variable and use a proc at load time to populate it. The LAG keyword on the CALCULATE command allows reference to earlier periods. It is a little flakey in that you need to ensure you have the earlier periods selected prior to running the calculation. Check the help file for exact syntax and run a couple of tests to ensure you understand the working. After that it will be straight forward,


Viewing all articles
Browse latest Browse all 10052

Trending Articles



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