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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlikview Expression Issue

Hi,

I am designing a qlikview application.Where in my select field is "Person_Key".

I will be calculating weight loss for each Person_Key.

Say for eg:For Person_key : 4208009,WeightLoss Expression should be Rnk2(WeightAns) -Rnk1(WeighAns) i,e ;123-123=0.

Can anyone help me with the expression for this,

11-5-2013 6-59-28 AM.jpg

Labels (1)
2 Replies
simondachstr
Specialist III
Specialist III

Use set analysis:

Sum({$<RNK={'2'}> WEIGHT_ANS) - Sum({$<RNK={'1'}> WEIGHT_ANS

MayilVahanan
MVP
MVP

Hi

Try like this

use dimension, person_key and expression like

Sum({<RNK={2}> WEIGHT_ANS) - Sum({<RNK={1}>} WEIGHT_ANS)

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