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

I am working in Sense and my calculation totals in my pivot table are wrong.  However when I select the currency code, then the totals are showing the correct value.

DimensionsMeasures
Aerospace161
  EUR25
  GBP10
  JPY30
  USD15

The calculation for the measure is (it is a master measure):

((Sum([Amount in doc. curr.])* avg({<PYTD_Flag={1}>}[Actual Rate]))*-1)/1000

The individuals values are correct, but the sub total (for Aerospace) is not.

thanks

Frank

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try wrapping it around with Sum(Aggr(, AllYourDimensions))

Sum(Aggr(((Sum([Amount in doc. curr.])* avg({<PYTD_Flag={1}>}[Actual Rate]))*-1)/1000, Dimensions))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Try wrapping it around with Sum(Aggr(, AllYourDimensions))

Sum(Aggr(((Sum([Amount in doc. curr.])* avg({<PYTD_Flag={1}>}[Actual Rate]))*-1)/1000, Dimensions))

fcecconi
Partner - Creator III
Partner - Creator III
Author

Sunny

I changed to calculation to:

Sum(Aggr(((Sum([Amount in doc. curr.])*

Avg({<CYTD_Flag={1}>}[Actual Rate]))*-1)/1000,[Market Description],[Currency Code]))

And works as expected.  thanks