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

find difference in Pivot table

Hi guys,

I have a pivot table

Capture.JPG.jpg

I want to calculate difference between the same tag from previous period.

Other words: Check pricing Sep 2013 31%-Check pricing Aug 2013 27% = dif 4% and so on.

When I use above or below, it calculates for Sep 2013  31%-3%=28%; 3%-48%=-45% and so on in one current month.

But I'd like compare the same but with previous period.

Please see the attached file.

Thanks,

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Why not? Please check attached

View solution in original post

6 Replies
swuehl
MVP
MVP

Your idea using chart inter record functions is good, you just need to add advanced aggregation to tell QV the correct dimension order.

Check attached.

MayilVahanan

Hi

Try like this

Alt(aggr(

Count({<[qID_2_Primary purpose of visit]={'Learn about services','Check pricing','Purchase Vonage services','Find promotion info','Buy Vonage services','Other'}>}POV)/Count(TOTAL <MYear> POV)

-

above(

Count({<[qID_2_Primary purpose of visit]={'Learn about services','Check pricing','Purchase Vonage services','Find promotion info','Buy Vonage services','Other'}>}POV)/Count(TOTAL <MYear> POV)

)

,POV,MYear),0)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Thanks for suggestion

My original expression is bigger.

It works, when I switch dimensions (instead of Above, I use before)

I can't switch dimensions in my chart.

Please see my file.

Anonymous
Not applicable
Author

Thanks for suggestion

My original expression is bigger.

It works, when I switch dimensions (instead of Above, I use before)

I can't switch dimensions in my chart.

Please see my file.

swuehl
MVP
MVP

Why not? Please check attached

Anonymous
Not applicable
Author

Thanks.  You're awesome