Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Display % correctly in input box

I have an input box where users can input a desired percent (%) and it gets set to a variable. The variable is then used to calculate another variable to be used in a chart. The issue is when inputting a number, for example = 25, it displays 2500% instead of 25%. How can I change this without requiring users to put in .25?

1 Solution

Accepted Solutions
Not applicable

Re: Display % correctly in input box

Thank you Settu!! This got me a lot closer.. I left off the &'%' in the trigger because it would add a second one when I changed the number again but I was able to use the trigger to get what I needed and then check the % box in the input box number tab and it is now working as I would like

11 Replies
pamaxeed
Contributor III

Re: Display % correctly in input box

Why you  not use just an other format for example number with 2 decimals?

sinanozdemir
Valued Contributor III

Re: Display % correctly in input box

Hi Shana,

I usually follow the below format:

Capture.PNG

Thanks

pamaxeed
Contributor III

Re: Display % correctly in input box

I mean in the Inputbox you can define a format, so in that case u just have to do like that:

Not applicable

Re: Display % correctly in input box

I did change the format like that and I clicked the show in percent % at the bottom. the number shows as 2500% instead of 25%

Not applicable

Re: Display % correctly in input box

Not applicable

Re: Display % correctly in input box

Not applicable

Re: Display % correctly in input box

it's not the text object that is displaying it incorrectly, it's the input box.

pamaxeed
Contributor III

Re: Display % correctly in input box

Here a sample app...

Try to give a look.

Cheers,

Patric

Not applicable

Re: Display % correctly in input box

I see what you're doing. The issue is that I want it to display the correct % in the input box, not an additional text object. I want this to say 33% not 33.00 in the input box.

Community Browser