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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straight Table Difference between columns

Hi all,

I have the following straight Table, with a dimension of year, and an expression of incoming and i want to know how to calculate the difference between years automatically.

How do i do that?

201020112012
Incoming300500900
Difference0200400

any clues?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try chart inter record functions, namely above() {but have a look at the others, too}.

When using a straight table, try

= sum(Incoming) - above(sum(Incoming))

When using in a pivot, you need to take care of the expression and dimension orientation, so if pivoted to the left, try

= sum(Incoming) - before(sum(Incoming))

Hope this helps,

Stefan

View solution in original post

2 Replies
swuehl
MVP
MVP

Try chart inter record functions, namely above() {but have a look at the others, too}.

When using a straight table, try

= sum(Incoming) - above(sum(Incoming))

When using in a pivot, you need to take care of the expression and dimension orientation, so if pivoted to the left, try

= sum(Incoming) - before(sum(Incoming))

Hope this helps,

Stefan

Not applicable
Author

Thanks a lot Stefan.

I getting used to qlikview functions, and a tried it with above and below, but didnt work.

But with after, works fine.

Thanks again.