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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Sakura
Creator
Creator

Decide dynamically the aggregate function to use

I have many fields for which I have to decide dynamically if I want to sum it or average it.

like if(aggregation='Sum', sum(field), average(field))

where sum(field) is for 20 fields and same is for average..

is there any way I can say, $(aggragation(field)) and aggregation is sum or average based on condition?

--aggragation= either sum or average--

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

1 Reply
sunny_talwar
MVP
MVP