Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
marcel_olmo
Partner Ambassador
Partner Ambassador

What if by calculation (not by variable) challenge

Hi guys,

I've been developed many what if comparisons where the "what if" number of the slider is a variable which is usually multiplied with the calculations of your own metrics.

But what about if I want to see it in an opposite way? Here's an example :

I want to know all the customer how many customers have bought a 10% less this year than the current year.

I'm wondering if I can do it with the "slider what if way".

If I have a chart table like this :

CustomerYear 2014Year 2013Diff %
cust1             190 €             200 €-10%
cust2             180 €             200 €-20%
cust3             170 €             200 €-30%
cust3             160 €             200 €-40%

And a slider like this :

1.png

If I select the 0-10% option, it will show only the first customer :

2.png

CustomerYear 2014Year 2013Diff %
cust1             190 €             200 €-10%

Is there any dummy example which shows how to do it this way?

Regards, Marcel.

2 Replies
JonnyPoole
Former Employee
Former Employee

Here is an example with a data island, class() function, and IF() in the chart expression:

Capture.PNG.png

JonnyPoole
Former Employee
Former Employee

Here is an example with a data island, class() function, and IF() in the chart expression:


Capture.PNG.png