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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
LorenaGSaar
Contributor II
Contributor II

Aggr based on GetCurrentSelections()

Hello All,

I have one expression like : Aggr(Sum(Sales), Dimension)

And my Aggr it will depends on the filter. So if I have Product, my expression will be:

Aggr(Sum(Sales), Product)

 

If I have Product and Type selected, my expression must be:

Aggr(Sum(Sales), Product, Type).

 

How can I do it? I have tried with GetCurrentFields(), but the result is with "spaces" between each result, and even removing the '\n', I still cannot work with the result. 

Thank you all for the tips!

 

 

Labels (1)
1 Reply