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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
omid5ive
Creator II
Creator II

Bar chart with difference in result

hi

i have a table like below

YearValue
201010
201115
20125
20138
20147

i need to have a bar chart with dimension of year and difference of values of two year

it means like this:

yearnew value (value of current year - value of past year)
2014-1
20133
2012-10
20115

what should i do in qlikview to have this chart?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Here is a sample qvw prepared from the data you gave and expression swuehl‌ suggested.

Capture.PNG

View solution in original post

5 Replies
swuehl
Champion III
Champion III

Try chart inter record functions, like below() or above() (depending on sort order of Year dimension):

=sum(Value) - below(sum(Value))

sunny_talwar
MVP
MVP

Here is a sample qvw prepared from the data you gave and expression swuehl‌ suggested.

Capture.PNG

omid5ive
Creator II
Creator II
Author

thank you

omid5ive
Creator II
Creator II
Author

thank you

sunny_talwar
MVP
MVP

No problem

Glad we were able to help.

Best,

Sunny