Aggregate the entity dimension and all it's parents

I am trying to aggregate the selected feature and all of its parents, but I also need global and product area. Can anyone advise if this peace of code aggregate the dimension product and region and only the parents of the selected entity.

DIFFICULTY ('Work', 'Budget' and Bud_Year)
GAME CALCPARALLEL 2;
SET CALCTASKDIMS 3;

AGG ('PRODUCT', 'AREA');
@ANCESTORS ({What_Entity});


ENDFIX

DIFFICULTY ("Working","Budget",&Bud_Year,@Relative("PRODUCT",0), @Relative("AREA",0))

@ANCESTORS ({What_Entity});

ENDFIX

DIFFICULTY ("Work", "Budget", & Bud_Year, @IANCESTORS '{What_Entity'))

AGG ('PRODUCT', 'AREA');

ENDFIX

Tags: Business Intelligence

Similar Questions

Maybe you are looking for