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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sijojoseph22
Creator II
Creator II

Rangesum

Hi All,

We need to fill the 'salary Triangulations' with the above value if the below value is null or zero and if the value exist the value should display.

 

i.e. for the Month from 5 to 8 it should come 1000 and then for 9 it should be 2000 and for  month 10-11 it should be 2000 and should go on like that.

 

Currently the formula I applied is taking the sum and displaying it i.e. 1000 +2000 and displaying the sum of 3000.

 

Attached the excel sheet and qvw. Please adivse

 

Thanks,

Sijo

1 Solution

Accepted Solutions
sunny_talwar

See if this helps:

Capture.PNG

Expression: If(Sum123 = 0, Alt(Above(Sum123), 0), Sum(Salary))

Here Sum123 is the expression label and hence it is Blue in color.

View solution in original post

5 Replies
sunny_talwar

Are you trying to do this in the script or on a front end chart? Cannot open your QVW as I am working with personal edition of QlikView.

sijojoseph22
Creator II
Creator II
Author

I am trying to do this in chart, not in script

sijojoseph22
Creator II
Creator II
Author

Add the image with the field Desired output

output.png

sunny_talwar

See if this helps:

Capture.PNG

Expression: If(Sum123 = 0, Alt(Above(Sum123), 0), Sum(Salary))

Here Sum123 is the expression label and hence it is Blue in color.

Anonymous
Not applicable

hi sijo,

If(len(trim(Sum(Salary))) = 0, Above(Sum(Salary)), Sum(Salary))