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

Slider in reversed order

Is it possible to get slider, variable-based, in the reversed order?  That is, instead of 0 to 100, get 100 to 0, left to right or top to bottom.

I tried set min value to 100 and max to 0 - it didn't do anything.  If I set negative step, QV hangs.

It should be simple, but somewhow I can't find it .

Is it imposible???

Thanks,

Michael

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps a dual field: dual(Value,-Value) as Value. Or setting the Number format for the negative values to show as normal: #,##0;#,##0


talk is cheap, supply exceeds demand

View solution in original post

8 Replies
Anonymous
Not applicable
Author

A somewhat weird workaround:

Use negative values from -100 to 0, and cover each minus sign with a text object.  And, use absolute values in the calculations.

Still, would like a better solution 

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps a dual field: dual(Value,-Value) as Value. Or setting the Number format for the negative values to show as normal: #,##0;#,##0


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Thanks GW,

Both dual field and number format work.  I prefer number format, no need to create extra field.

swuehl
MVP
MVP

Just a note:

When using a field, I think you can just sort by number descending. Apparently you can't use this option for a variable.

Anonymous
Not applicable
Author

This is correct Stefan, with field you can sort it in any way.

Strangely, sort wasn't available when I modified the slider originally created with a variable.  But if create a new slider from scratch using field, sort works.

Anyway, variable with number format #,##0;#,##0 is a better solution in my case.

Thanks,

Michael

Anonymous
Not applicable
Author

Some follow-up.

The solution with number formatting #,##0;#,##0 is limited.  It doesn't help if the range goes accross the 0, for example from 50 to -50.  Apparently the only way in this case is to use field.

swuehl
MVP
MVP

Strangely, sort wasn't available when I modified the slider originally created with a variable.  But if create a new slider from scratch using field, sort works.    

I also came across this issue, and I think it was due to following:

I you create a slider with option to set variables, the only option in value mode is 'continuous/numeric'.

This won't allow to specify sort order.

If you then change to use a field instead of variables, you need to change the value mode manually to 'Discrete'. This enables sort tab options again.

Anonymous
Not applicable
Author

It helps, thanks Stefan.