Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Syed17
Contributor III
Contributor III

Iam getting wrong values after doing addition of two columns. Please help to me solve this issue.

Syed17_0-1723620191989.pngSyed17_1-1723620267130.png

 

Iam adding column 1 and column 2 and getting this value on column 4 using the above expression and i have done group by also. 

6 Replies
Padma123
Contributor III
Contributor III

Try..

aggr((sum(PREPAYMENTAMOUNT_WITH_VAT)+sum(PREPAYMENT_AMOUNT_APPLIED)),COLUMN)

Syed17
Contributor III
Contributor III
Author

iam doing in a data load editor mam not in front end.

Vegar
MVP
MVP

Are the comumns found int the same table or are they found in different tables?

Looking at the figures it looks like you have duplicates somewhere? What happens if you add a measure count(PAYMENT_AMOUNT_WITH_VAT) or a measure sum(PREPAYED_AMOUNT_APPLIED) to your table. Are any of them returning a value larger than 1? If so, then that is your explanation why you get those values.

Syed17
Contributor III
Contributor III
Author

It's from data model sir.. No duplicated values i checked that

Padma123
Contributor III
Contributor III

load
COLUMN,
(sum(PREPAYMENTAMOUNT_WITH_VAT)+sum(PREPAYMENT_AMOUNT_APPLIED)) as field
Resident table
group by COLUMN;

Syed17
Contributor III
Contributor III
Author

Same wrong solution i get still.