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

Re: Is it possible to create local members on the template to calculate YTD / YTG total?

$
0
0

Hi Yuen,

    Actually, you can try creating YTD and YTG Key Figures in the Planning Area

 

Check if this would work:Assuming your TP has Mth,Qtr Yr,

and your Key Figure KF1 is at MTHPROD level

1.Set to NULL all values for KF1 hat dont belong to current year and future periods of current year

HKF1@MTHPROD = IF(PERIODID1 = $$PERIODID1CU$$ and PERIODID0 <= $$PERIODID0CU$$, KF1@MTHPROD,NULL);

2. Aggregate to Yr from Month

HKF1@YRPROD = SUM(HKF1@MTHPROD) ;


3. Put the aggregated Yr value to the current month

KFYTD@MTHPROD =  IF( "PERIODID1"  =  "$$PERIODID1CU$$"  AND  "PERIODID0"  =  "$$PERIODID0CU$$"  ,  "HKF1@YRPROD"  ,  "HNULL@MTHPROD" )

where HNULL is a KF which just has NULL values at MTHPROD level. You can create this KF as HNULL@MTHPRD = NULL (I/P KF1@MTHPROD)

 

There may be variations of this, but this in principle should work

Thanks,

Raghav


Viewing all articles
Browse latest Browse all 3019

Trending Articles



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