Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

why compute Total with field = Rate cannot work ?

Hi All

I have below expression work fine :-

Sum( {<eXP={eXP}>} Amount*-1/1000)

Below is the expression which i want to compute TOTAL for the above expression , IT Also work fine, as shown in table 1 :-

Sum(ALL {<eXP={eXP}>} Amount*-1/1000)

Now i have expression below , which convert all the currency to SGD:-

Sum( {<eXP={eXP}>} Amount*-1/1000)/Rate

when i modify the above expression with compute Total as below :-

Sum(ALL {<eXP={eXP}>} Amount*-1/1000)/Rate

it cannot work as shown in Table 2.

Can some one advise me ?

PAul

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

You can try this..

Sum(TOTAL Aggr(Sum( {<eXP={eXP}>} Amount*-1/1000)/Rate,SOURCE))

View solution in original post

8 Replies
paulyeo11
Master
Master
Author

my QV Doc

settu_periasamy
Master III
Master III

Hi Paul,

I think your expression seems to be working fine..

i separated the expression and gives the same result..

Picture1.jpg

paulyeo11
Master
Master
Author

Hi Settu

Thank you for your reply.

column 2 all same value.png

settu_periasamy
Master III
Master III

You can try this..

Sum(TOTAL Aggr(Sum( {<eXP={eXP}>} Amount*-1/1000)/Rate,SOURCE))

paulyeo11
Master
Master
Author

‌HI Settu

thank you very much

paul

Anonymous
Not applicable

try in this way

Sum(ALL {<eXP={eXP}>} (Amount*-1)/1000)/Rate

paulyeo11
Master
Master
Author

Hi Gupta

I already got the solution , after add Aggr it work fine. As I am using V9 , this is the work around.

Paul

Sent from my iPhone

paulyeo11
Master
Master
Author

Hi Gupta

Correct expression as below from Settu :-

Sum(TOTAL Aggr(Sum( {<eXP={eXP}>} Amount*-1/1000)/Rate,SOURCE))