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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis (sum, avg, aggregation...)

Hi all,

I have a list of orders like the following :

Order IDAmountCurrencyCurrency RateOrder Date

I need to show, in a text box, the sum of all Amount in Euro where :

sum of all Amount in Euro =sum of all orders and for every Order: sum(Amount) * the average of Currency Rate of the current Currency.

that means, the average of Currency is calculated based on all other order having the same currency

any idea ?

Regards,

Yacine

11 Replies
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

maybe like this:

sum(Amount)*sum(aggr(avg(Currency_Rate), OrderID, Currency))

regards

MK_QSL
MVP
MVP

Try

AVG(TOTAL <Currency> Currency_Rate)

&

SUM(Amount)*AVG(TOTAL <Currency> Currency_Rate)