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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Suus
Partner - Creator
Partner - Creator

How to let Gauge segment bounds work with a variable?

Hi,

I want to create a gauge meter with a variable 'norm', since KPI norm is not set yet.

No matter what I do I can not get the Gauge segment bounds to work with a variable.

I created a variable called vNorm which is connected to a input box.

This I try to encorporate in the lower bound of a segment.

Tried using =$(vNorm) or = vNorm, but it just won't work.

I see the segment requires a 0.7 (dot format) in stead of 0,7 (comma format) as is provided by my variable.

Could this be the culprit?

Do you know a way, or otherwise workaround to make this work?

Thanks!

1 Solution

Accepted Solutions
Suus
Partner - Creator
Partner - Creator
Author

The num# did not work

I figured it out myself.

Just made a second variable resulting in a textfield

vNorm2= '0.'& $(vNorm)

vNorm has input now of a % integer, e.g. 75 or 65

vNorm2 transfers it to 0.75 or 0.65

Strange thing is that gauge works with variable, but not with the same variable inserted as expression.

Anyway it works, and I am happy 😄

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yes, 0,7 wouldn't work as boundary value. You could try =num#(vNorm,'#,0',',','.').


talk is cheap, supply exceeds demand
jonathandienst
Partner - Champion III
Partner - Champion III

Yes, the numbers need to have a decimal point rather than a comma - although it may depend on your localisation settings.Why does your variable contain a comma?

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Suus
Partner - Creator
Partner - Creator
Author

That is the way we in Holland note decimals. So yes this is the way the DecimalSep is set.

Suus
Partner - Creator
Partner - Creator
Author

The num# did not work

I figured it out myself.

Just made a second variable resulting in a textfield

vNorm2= '0.'& $(vNorm)

vNorm has input now of a % integer, e.g. 75 or 65

vNorm2 transfers it to 0.75 or 0.65

Strange thing is that gauge works with variable, but not with the same variable inserted as expression.

Anyway it works, and I am happy 😄