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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
bazzaonline
Creator
Creator

Help on IF v. Set Analysis

Hello,  I have the below expression which works fine at an overall level,

([NPSP])/sum(NPSS)-sum([NPSD])/sum(NPSS))*100

However I need to be able to add a criteria so it only works on a sub set of data.  In this case when the Dimension 'Flow' equals 'Rapid'.

How do I do this?  I tried

if(Flow='Rapid',sum([NPSP])/sum(NPSS)-sum([NPSD])/sum(NPSS))*100

but no joy.

Any ideas?

3 Replies
simospa
Partner - Specialist
Partner - Specialist

Hi Paul,

not sure I undesrstood what do you want...

Try to see  the attachment.

Let me know.

S.

maxgro
MVP
MVP

maybe

sum({$ <Flow={Rapid}>} NPSP) / ......



Anonymous
Not applicable

try.

sum({<Flow={'Rapid'}>}NPSP)/sum({<Flow={'Rapid'}>}NPSS)-sum({<Flow={'Rapid'}>NPSD}/sum({<Flow={'Rapid'}>NPSS}*100