Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Incorrect Sum up

Hello all,

I was working on a straight table in qlikview and came across this;

incorrectfig.png

The total for Excess should be -264.61 but instead I'm getting 0.00

What could be the cause of this and how can I get the right figure?

Thanks

Fifi Nokoe

1 Solution

Accepted Solutions
Not applicable
Author

Thank you all for your responses. I found an alternative way to solve this by summing the expression in the edit script with a "group by" function. Your inputs and feedback's were all appreciated.

View solution in original post

12 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try doing this:

Screenshot_1.jpg

You should remember that this option is able only in Straight table.

Frank_Hartmann
Master II
Master II

can you share a sample?

danansell42
Creator III
Creator III

Hi Fifi

What is the expression you have used?

Is it possible the -264.61 is not actually formatted as a number?

Thanks

Dan

sunny_talwar

What is the expression used here?

susovan
Partner - Specialist
Partner - Specialist

Try this way,

10.JPG

11.JPG

I have used this below expression in this chart

Expression : if((Sum(Amount-Amount1))<0,'('& Sum(Amount-Amount1)& ')',Sum(Amount-Amount1))

Warm Regards,
Susovan
Not applicable
Author

Hello Dan, Thanks for your response. This is the expression; IF(ov_ExpiryDate < TODAY(),COLUMN(1), IF(COLUMN(2)> FABS(COLUMN(1)),'', COLUMN(1) + COLUMN(2))) Column is money formatted and even when it's fixed to two decimal places it doesn't sum the column total

nizamsha
Specialist II
Specialist II

create a 2 field and check what format you are getting.

if Your value(-264) is aligned in leftside then you will get 0 only

replace that open and close bracket in the back end  and make that one as number like this 

PurgeChar(Amount,'()') as Amount

then do ur calculation it should work

Not applicable
Author

column 1 >>>> sum(Balance) column 2 >>>>SUM(IF(LEFT(ID_ID,2)='LD',(Balance) * -1,IF(LEFT(id_ID,2)<>'LD',limit))) Excess  >>>>>>>>>>>>> IF(expiry< TODAY(),COLUMN(1), IF(COLUMN(2)> FABS(COLUMN(1)),'', COLUMN(1) + COLUMN(2))) Column is money formatted

nizamsha
Specialist II
Specialist II

can you share excel so that we can check where was that gap