Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Passing the first dimension to Aggr function or Total function in set in pivot chart ?

Hii folks,

Suppose i am having 3 dimensions in a pivot chart as zone,region,branch and i m show sum(sales) as expression.

Now i want to add another expression - something like

aggr(NODISTINCT sum(Sales),(FirstDimension))

or

sum(TOTAL<FirstDimension> Sales)

i.e if Zone is the first dimension of the chart output should be zone wise totals , if users drags the dimension and makes region as the first dimension in the chart then output should be Regionwise totals.

Is this possible ?

Any help would be appreciated.

Thanks,

Rohan

jagan

14 Replies
Anonymous
Not applicable
Author

Thats right

Not applicable
Author

Hello both,

i finally found a dynamic solution to this requirement without the use of input box or variables -

sum(TOTAL<$(=GetObjectField(0,'CH24'))> Sales)

or

aggr(NODISTINCT sum(Sales),$(=GetObjectField(0,'CH24')))

Thank you for your solutions as well.

Regards,

Rohan

sunny_talwar

Thanks for sharing that Rohan. This is the first time I am seeing that function. I think this is going to be a very useful function.

Best,

Sunny

Not applicable
Author

Your Welcome,

Regards,

Rohan

rajeshwar1
Partner - Contributor III
Partner - Contributor III

Hi,

 

I tried but it's not working in AD-Hoc pivot.