Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
adamjwchen
Contributor III
Contributor III

add calcuated column in pivot table

Hi,

I have a pivot table as below. Dimension(Year) is manipulated, I would like to get the variance column, can someone get me some hints?

2 Replies
devarasu07
Master II
Master II

Hi,

Try like this,

Variance:

sum(Amount) - before(sum(Amount))

or other way,

Create Measure like below,

=Max(Year) // current year

sum( {$<Year={"$(=max(Year))"}>}  Amount)

=max(Year)-1 // previous year

sum( {$<Year={"$(=max(Year)-1)"}>}  Amount)

Variance:

Column(1)-Column(2)

Capture.JPG

tresesco
MVP
MVP

May be like this?

Capture.JPG