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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
didierodayo
Partner - Creator III
Partner - Creator III

script from percentage fields

Hello ,

I have so issues with the fields below. I need to write the following 2 calculations based on the Qlikview fields below. I need the script for the load and expression on a table. The issues is I need the result to return a percentage value.

 

1-             AULvl + ((ENLvl - AULvl ) x avg(Levels))

 

  2-              ENLvl + ((100-ENLvl ) x avg(Levels))

 

Thanks

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi,

See sample attached.

You can do the formatting in script i.e num(AULvl + ((ENLvl - AULvl ) * avg(Levels)),'#,##0%') as calc1

or on the front end.

Listbox properties > Number  > Override Doc Settings> select show in percent and the number format you want.

Hope this helps!

View solution in original post

1 Reply
Anonymous
Not applicable

Hi,

See sample attached.

You can do the formatting in script i.e num(AULvl + ((ENLvl - AULvl ) * avg(Levels)),'#,##0%') as calc1

or on the front end.

Listbox properties > Number  > Override Doc Settings> select show in percent and the number format you want.

Hope this helps!