Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
Make your voice heard! Participate in the 2020 Wisdom of Crowds® Survey. BEGIN SURVEY
Highlighted
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
Highlighted
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

View solution in original post

11 Replies
Highlighted
Partner
Partner

Re: Display % correctly in input box

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

Highlighted
sinanozdemir
Valued Contributor III

Re: Display % correctly in input box

Hi Shana,

I usually follow the below format:

Capture.PNG

Thanks

Highlighted
Partner
Partner

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:

Highlighted
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%

Highlighted
Not applicable

Re: Display % correctly in input box

Highlighted
Not applicable

Re: Display % correctly in input box

Highlighted
Not applicable

Re: Display % correctly in input box

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

Highlighted
Partner
Partner

Re: Display % correctly in input box

Here a sample app...

Try to give a look.

Cheers,

Patric

Highlighted
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.