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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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

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

- Marcus