Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
timpoismans
Specialist
Specialist

Using GetObjectDimension in Aggr

Is there way in how we can use the function GetObjectDimension in the Aggr-function?

GetObjectDimension returns the name of a dimension, but this is not sufficient for the Aggr-function. 

Anyone knows about a possible solution to this problem?

 

P.S.: Adding square brackets to the function as in '[' & function & ']' won't work.

 

 

Kind regards,

Tim P.

11 Replies
JulieJoseph
Contributor
Contributor

Hi praichubb,

I am having a similar issue where I want to do an aggregation based on the two dimensions which are selected (From a list of alternate dimensions)for a chart. Were you able to get a solution for this successfully. If yes, Could you please share the same here.

 

Regards,

Julie

Alvaro__
Contributor
Contributor

Instead of GetObjectDimension you can try using GetObjectField:

Aggr(Sum(Measure), $(='[' & GetObjectField() & ']'))