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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Target % Expression help


Hello,

I am looking to use a text box to show the % achieved for sales against target.  What I have tried for far is =(TARGET/SALES)*100, =sum(TARGET/SALES) and =sum(TARGET/SALES)*100 to see if this would work and it doesn't (surprise surprise)!  It either returns a - or a large number.

Can someone advise the best way getting this to show the decimal % or the %?

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Hi Sara, try this

=Num(Sum(TARGET)/Sum(SALES),'#,##0%')

and if you want 2 decimal places then =Num(Sum(TARGET)/Sum(SALES),'#,###.##%')

Where Num() function is used to format the individual summed up values for TARGET and SALES.

View solution in original post

3 Replies
Not applicable
Author

Hi Sara, try this

=Num(Sum(TARGET)/Sum(SALES),'#,##0%')

and if you want 2 decimal places then =Num(Sum(TARGET)/Sum(SALES),'#,###.##%')

Where Num() function is used to format the individual summed up values for TARGET and SALES.

alexandros17
Partner - Champion III
Partner - Champion III

To format a number as % you need:

Num(myExpression,'#.##0,00%')

but this is only the final part of the problem,

I don't know how your data work but try these expressions in your text box and then combine:

SUM(Target) and Sum(Sales) if they work try

SUM(Target) / Sum(Sales)

let me know

Not applicable
Author

Subodh Roche, worked a treat!  Thank you!