Hi Team,
I'm building a report that mixes YTD and QTD time ranges over three years; Current, Prior (1 year ago), Prior Prior (2 years ago)
PMF ships with YTD and QTD time ranges, and I added YTD Prior and QTD Prior time ranges. I could not figure out how to add a YTD Prior Prior or QTD Prior Prior time range, so I tried to get fancy. I figured that I could set PMF's frozen in time variable(s) back a year, and then re-use my YTD_PRI and QTD_PRI time ranges.
This actually worked for the Year to Date Prior time range, but not for the Quarter to Date time range. When pulling numbers for Quarter to Date Prior, it shows the same results when I use the default frozen in time period versus when I set it back a year.
I think I must not be resetting the frozen in time period properly for Quarter to Date time periods, which is entirely possible, as I invented this technique out of the air. This is what I'm doing:
-TYPE &TLVL01_CUR
-* here is where the magic happens:
-SET &TLVL01_CUR=&TLVL01_CUR-1;
-TYPE &TLVL01_CUR
-TYPE &TLVL0102_CUR
-SET &TLVL0102_CUR=&TLVL01_CUR||&TLVL02_CUR;
-TYPE &TLVL0102_CUR
-TYPE &TLVL0103_CUR
-SET &TLVL0103_CUR=&TLVL01_CUR||&TLVL03_CUR;
-TYPE &TLVL0103_CUR
-TYPE &TIME_HASH_CURRENT
-SET &TIME_HASH_CURRENT=&TLVL01_CUR||'/'||&TLVL02_CUR||'/'||&TLVL03_CUR;
-TYPE &TIME_HASH_CURRENT
A solution to any of the following would solve my problem:
-is it possible to build a QTD Prior Prior time range?
-did I miss something with the above time variable mishmash?
-is there a totally easy and probably-already-well-documented method to reset the time period with a SET command?
Cheers,
Joey
-WebFOCUS 8.2.01 on Windows