Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nevilledhamsiri
Specialist
Specialist

Can the set Expression be used to show somthing > or <

Hi,

As per the data presented below, could you show me how records of which  ACT_CUM>BUD_CUM   be shown using Set expression taking in to account the related dimensions! related data are as follows!

Thanks

Neville

      

BR_CODECATEGORYNOTE_CODETYPEACT_CUMULATIVEBUD_CUMULATIVEVARIANCE
RASTAFF EXPENSES500STAFF SALARIES7,507,077.417,480,400.00-26,677.41
RASTAFF EXPENSES513STAFF WELFARE242,390.18224,000.00-18,390.18
RASELLING EXPENSE702BUSINESS PROMOTION259,798.33265,000.005,201.67
EMSTAFF EXPENSES500STAFF SALARIES8,500,000.007,480,400.00-1,019,600.00
EMSTAFF EXPENSES513STAFF WELFARE350,000.00500,000.00150,000.00
EMSELLING EXPENSE702BUSINESS PROMOTION259,798.33229,800.00-29,998.33
10 Replies
Frank_Hartmann
Master II
Master II

Sorry, Im not getting you.

please explain why the neg Variance -26677.41 should not be correct?

Both conditions are fullfilled:

the actValue > BudValue

and Variance <0


try this:

SUM({< VARIANCE = {"=VARIANCE<0"},ACT_CUMULATIVE = {"=sum(aggr(sum(ACT_CUMULATIVE),CATEGORY,BR_CODE,NOTE_CODE,TYPE)) > sum(aggr(sum(BUD_CUMULATIVE),CATEGORY,BR_CODE,NOTE_CODE,TYPE))"}>} ACT_CUMULATIVE)


Maybe you will have to include your specific dimensions into the aggregation function inside set analysis in order to get it work!


See attached File