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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Slider usage

Hello,

I'd like to set a tollerance value by means of a slider. I set the slider min value to 0, the max to 0.2 and the step of 0.01 and I set the value storage in a variable.

When I use the slider, the values aren't stored into the variable with the format of 0.1 but 0,1, so it doesn't work.

Why does it make the conversion of "." with ","? How can I workaround it?

Thanks.

N.

1 Solution

Accepted Solutions
rubenmarin1

If I create a variable like yours (with comma as decimal separator), and I create a textbox with expression =1+vValue it return the addition ok, ie: if slider is in 0,02 it returns 1,02.

What's the issue you found?

View solution in original post

4 Replies
rubenmarin1

Hi, at the beginig of script you can change Thousand and decimal separators, try with:

SET ThousandSep=',';

SET DecimalSep='.';

Anonymous
Not applicable
Author

Well, I'd like to preserve the italian numeric notion ("." as thousand separator and "," as decimal separator).

I tried also to set the values in the sliding bar to 0,2 for the max and 0,01 for the step, but the result is always the same as the previous setting...

rubenmarin1

If I create a variable like yours (with comma as decimal separator), and I create a textbox with expression =1+vValue it return the addition ok, ie: if slider is in 0,02 it returns 1,02.

What's the issue you found?

Anonymous
Not applicable
Author

You're right, my error was that I used a wrong syntax in the formula expression=1+$(vValue) instead of 1+vValue.

Sorry for the mistake and thank you for the help 🙂

N.