Hi All,
for the above issue i used the above code and created a restricted keyfigure as below.
1. create a rkf for the required keyfigure with restriction on no of days(MTD ) logic same as above, change the opt from eq to bt and pass high and low value as above.
2. Create a CKF with formula variable.
Formula variable name should be same of customer exit name.
3. create another ckf to calculate the avg as RKF created in first step/ckf created in second step.
Same steps can be used for the YTD and YTD avg also
Thanks,
Madhu