Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
orangebloss
Creator
Creator

Multiply by 0 gives unexpected result

I'm calculating costs based on categories and multiplying the delta by a number specified in a variable. It all works well until I try to multiply by  0 to show that there should be no cost, any other positive number works fine - what am I missing?

Pic shows the effect of multiplying H, TE and TT by 0

orangebloss_0-1684403846167.png

 

Labels (3)
1 Solution

Accepted Solutions
orangebloss
Creator
Creator
Author

Gah! turns out a bracket was in the wrong place, I don't understand the logic of it as all the other calculations worked just not multiplying anything below 0!

View solution in original post

3 Replies
BrunPierre
Partner - Master II
Partner - Master II

Hi, I understand you need to replace the negative values with 0, maybe this.

RangeMax(FieldName, 0)

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Can you post you expression?

-Rob

orangebloss
Creator
Creator
Author

Gah! turns out a bracket was in the wrong place, I don't understand the logic of it as all the other calculations worked just not multiplying anything below 0!