Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
dominiksobanski
Contributor
Contributor

Aggregation with set analysis

Hello, 

I am Iooking for expression wich give me a sum of sales for the first version of deal.

So something like below.

Sum({<version={"=$(min(version))"} >} amount)

But it has to take min version per deal, not the smallest from whole set of data.

I tried to achieve it with aggr function but no luck. 

It has to be dynamic. User can choose eg. range of dates and the calculation has to work. So it is not always the same version of deal for the calculation. 

Is it possible at all? 

Labels (1)
14 Replies
marcus_sommer

Maybe with something like this:

sum(aggr(sum(Amount) * -(Version=min(Version)), Deal))

dominiksobanski
Contributor
Contributor
Author

Thanks for proposal but it is not working.

dominiksobanski
Contributor
Contributor
Author

Thank you for movie but it didn't answer on my problem.

robert99
Specialist III
Specialist III

OK. It worked for me (much to my surprise) in a similar example to the one you described. Where I had previously used script. But good that you found a solution