Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

dynamic column names in Aggr

Hello

I have an expression in a pivot table as follows:

if(

min(aggr($(=vSales_Variance),[Geo Country],[Brand Group]))<0,

'qmem://<bundled>/BuiltIn/arrow_e.png')

the Columns [Geo Country] and [Brand Groups] I can get their names respectively using the following:

'[' & GetObjectField(Dimensionality()-1) & ']' 

however when I use '[' & GetObjectField(Dimensionality()-1) & ']'  in the above aggregation the expression doesn't work

Please advise

I can walk on water when it freezes
2 Replies
Not applicable

up!

need it too

whiteline
Master II
Master II

Hi.

The field name should be calculated before the expresison starts calculating.

Use $() statement, something like this:

$(='[' & GetObjectField(Dimensionality()-1) & ']')