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: 
Not applicable

Button

Hi all,

I just finished building a table containing all sort of data.

The tab also contains a max button that will show me every customer. Next to this button I got a slider that will show me a number of customers.

Now I was wondering if it is possible that when I select this max button my caption will say:' All customers' and when I don't have this button selected it says 'Top ...'

I was already thinking about using 2 variables but maybe there is a easyier way of solving this problem?

kind regards

14 Replies
datanibbler
Champion
Champion

Hi Vincent,

sure you can do that.

What exactly does your button do? I guess it controls some variable?

=> If so, just make the caption_bar of your chart dependent on the same variable.

HTH

Best regards,

DataNibbler

manojkulkarni
Partner - Specialist II
Partner - Specialist II

You can use a single variable to show the title of chart.

vCountofCustomer = 0, when button is clicked

vCountofCustomer =  selected value from slider.

If vCountofCustomer =0, 'All Customer', ;Top '& vCountofCustomer&'  customer'

Not applicable
Author

Hi my button got a variable and the value counts the number of customers.

Now my caption does contain the variable so it will show me how many customers I got selected on the slider. However I want it to have 2 options. The one I use the slider it gives me a number (how many selected) and the second it will will say I got the total customers when the max button is used.

jsingh71
Partner - Specialist
Partner - Specialist

Hi,

You will do this...share some information or screenshot ,where you want to show the caption.

Not applicable
Author

This is now in my caption: 'Top ' & vLaneSales& ' Lane Sales(in K)'

This how I now got it but it doesnt show me anything

=if(vLaneSales= 0 & ' All lane Sales(in K)', 'Top ' & vLaneSales& 'Lane Sales')

datanibbler
Champion
Champion

Hi Vincent,

the IF_construction is wrong. Look at that closely. You're close. (Hint: If you start typing as far as '= IF(' in the editor, QlikView will show you exactly what parameters and stuff it expects).

manojkulkarni
Partner - Specialist II
Partner - Specialist II

it should be..

if(vLaneSales= 0 , ' All lane Sales(in K)', 'Top ' & vLaneSales& 'Lane Sales')

Not applicable
Author

if I use your formula it will only use the second part of the the expression  'Top ' & vLaneSales& 'Lane Sales')


do I need to edit something in the button?

manojkulkarni
Partner - Specialist II
Partner - Specialist II

on Button Action, you need to set vLaneSales=0 & on change of slider

set vLaneSales = selected value from slider.