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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

% Change Calculation in chart

Hi,

I have a chart in which Quarter is a dimention,Count is an inputfield and Cost,Paid are expressions.I need to calculate % change for next quarter incomparision with the previous one.Can someone please let me know how to do this % change calculation and display it in the same cell just below the cell value?

QuarterCountCostPaid
2010-Q12010060
2010-Q2

30

(50%)

150

(50%)

75

(25%)

2010-Q3

45

(50%)

180

(20%)

125

(66.6%)

Ex :calculation for % change for count in 2010-Q2 is [(30-20)/20]*100=50%

Thanks,Pooja

1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

For Cost and Paid, I think it could look like

= sum(Value) & chr(10) & num(sum(Value)/above(sum(Value))-1,'#.0 %')

(and check the wrap cell text in presentation tab).

You could also use similar for the inputfield (remember to use one of the inputfield aggregation functions like inputsum or inputavg), but it looks like this will disable the actual input functionality (while just using e.g.  inputsum(Value) should work).

View solution in original post

4 Replies
swuehl
Champion III
Champion III

For Cost and Paid, I think it could look like

= sum(Value) & chr(10) & num(sum(Value)/above(sum(Value))-1,'#.0 %')

(and check the wrap cell text in presentation tab).

You could also use similar for the inputfield (remember to use one of the inputfield aggregation functions like inputsum or inputavg), but it looks like this will disable the actual input functionality (while just using e.g.  inputsum(Value) should work).

Not applicable
Author

Thanks..It worked in the expression value cells.But the Expression total comes back as 0.Is there a way to fix it.

swuehl
Champion III
Champion III

I would assume yes, I just tried in a pivot and the horizontal line total seems to be ok. What do you see, and what results do you expect?

Not applicable
Author

there was some issue with the expression so it couldnot calulate the total using the Partial sum of pivot table.Thanks.