if(@isgen("sj",4)) "去年同期预算"=@prior("",12,genmbrs("sj",4));
elseif(@isgen("sj",3)) "去年同期预算"=@prior("本期预算",4,genmbrs("sj",3));
elseif(@isgen("sj",2)) "去年同期预算"=@prior("本期预算",1,genmbrs("sj",2));
endif;
时间结构为 年-季-月
然后再做个计算指标 预算差异=去年同期预算-本期预算
本期值(@TREND(@LIST("01","03","05"),@LIST(1,3,5),,,@LIST(6,7,8,9,10,11,12),"01":"12",LR););
//ESS_LOCALE SimplifiedChinese_China.MS936@Binary
"本期值"(@TREND ("200907":"200912",,,,,"201001":"201012",SES););