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: 
robertsb41
Contributor III
Contributor III

Calculate % Increase

Hello,

I am trying to calculate the % Increase of different values in a straight table.  My table is below with the values filled in for % Increase that I would expect to get. For each "Contract_ID" I want to calculate the % increase in Bid Amount from rank 1 to 2, then 2 to 3 and so on.  Any advice is much appreciated.

Thansk!

Contract_IDRankBid Amount $% Increase
200918-A011$ 2,897,636.14-
200918-A012$ 2,923,246.150.88%
200918-A013$ 3,304,201.4613.03%
200918-C011$ 2,106,167.49-
200918-C012$ 2,383,955.0313.19%
200918-C013$ 2,681,826.0012.49%
200918-C014$ 2,798,363.964.35%
200918-C021$ 2,681,859.59-
200918-C022$ 3,247,232.2021.08%
200918-C031$ 795,433.11-
200918-C032$ 835,098.314.99%
200918-C033$ 871,940.004.41%
200918-C034$ 896,818.692.85%
200918-C035$ 950,306.175.96%
200918-C036$ 960,714.621.10%
200918-C037$ 966,705.320.62%
200918-C038$ 1,086,237.4812.36%
200918-C039$ 1,213,890.3011.75%
Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

@robertsb41  try this

Aggr(Sum([Bid_Amount])/Above(Sum([Bid_Amount])) - 1, Contract_ID, Rank)

image.png

View solution in original post

6 Replies
sunny_talwar
MVP
MVP

Should just be this

Sum([Bid Amount])/Above(Sum([Bid Amount])) - 1
robertsb41
Contributor III
Contributor III
Author

This returns all null values.
sunny_talwar
MVP
MVP

@robertsb41 would you be able to share a sample where we can see the issue?

robertsb41
Contributor III
Contributor III
Author

Thanks for your help.

sunny_talwar
MVP
MVP

@robertsb41  try this

Aggr(Sum([Bid_Amount])/Above(Sum([Bid_Amount])) - 1, Contract_ID, Rank)

image.png

robertsb41
Contributor III
Contributor III
Author

You are the best.  Thank you!