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: 
fcecconi
Partner - Creator III
Partner - Creator III

Calculation Help (Qlik Sense)

Hello

I am trying to create a summary table of revenue values my company codes for the year.  The revenue needs to be converted to USD.  When I leave the individual currency lookup key in the table, I get the correct value.  However when I remove the lookup key, the value will not calculated.

thanks in advance for your help

Frank

Labels (1)
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

those your dimension has multiple records of [Actual Rate]

if so you'll need to use an aggr expression something like:

sum(aggr((Sum([Amount in doc. curr.])*[Actual Rate])/1000,currency_key,Yourdimensions))

View solution in original post

5 Replies
lironbaram
Partner - Master III
Partner - Master III

can you post your expression and dimensions of the table

fcecconi
Partner - Creator III
Partner - Creator III
Author

The calculation is (Sum([Amount in doc. curr.])*[Actual Rate])/1000

There is a join from the fact to the exchange rate table (Currency Lookup column)

lironbaram
Partner - Master III
Partner - Master III

those your dimension has multiple records of [Actual Rate]

if so you'll need to use an aggr expression something like:

sum(aggr((Sum([Amount in doc. curr.])*[Actual Rate])/1000,currency_key,Yourdimensions))

maxgro
MVP
MVP

Sum([Amount in doc. curr.]*[Actual Rate])   / 1000

fcecconi
Partner - Creator III
Partner - Creator III
Author

Liron

thanks.  Here is what the calculation ended up:

sum(aggr((Sum([Amount in doc. curr.])*[Actual Rate])/1000,[Currency lookup],[Currency Code],

[Fiscal year],[Company Code]))*-1