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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jayaseelan
Creator III
Creator III

Subtract Two Rows using expression

Hi Experts,

I need to subtract the two rows and the result should be feed to another column.

I have attached my Data in excel, Please any one give me the solution for attached data.

Capture.PNG

thanks,

1 Solution

Accepted Solutions
devarasu07
Master II
Master II

Hi,

Refer to the attached sample output. tks

View solution in original post

5 Replies
swuehl
Champion III
Champion III

Try a chart inter record function, Above():

=Rangesum( Value, -Above(Value) )

sunny_talwar
MVP
MVP

In case you have more than Value for each Month, you might need to add Sum() or Avg() or whatever you expression is for value

=RangeSum(Exp4Value, -Above(Exp4Value))

jayaseelan
Creator III
Creator III
Author

Thanks for your valuable reply

But using above expression i did't getting my result. can you please give me a example .qvw or .qvf use the data which i have attached.

devarasu07
Master II
Master II

Hi,

Refer to the attached sample output. tks

jayaseelan
Creator III
Creator III
Author

Thanks for replied everyone got the output.