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: 
JVET
Contributor II
Contributor II

Sum-Aggr-FirstSortedValue Problem

Hello. I´m usig sum(Aggr(FirstSortedValue(acum_margen_bruto,-mes_mg_bruto),mes_alta))-(14.51*(max(clientes,mes_alta)))  and this expression is not doing what I need and dont know how solve it.

Qlik-ejemplo mal1.JPG

Single amounts ar correct, but Total amount is incorrect.  How can I solve.

 

Thanks.

2 Replies
JVET
Contributor II
Contributor II
Author

Any idea? Thanks

marcus_sommer
MVP
MVP

You may need another sum(aggr()) wrapping your expression.

- Marcus