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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Calculat Percentage in a Chart Expression

hi guys,

I have a field as follow:

Broker

ABC

XYZ

ARS

ARS

XYZ

ABC

ABC

I need to build a chart to show the percentage of that field to total nr.

Like Perecentage of ABC= 4*100/7= 57.14

If I add the field broker as dimenssion and then Expression as Count(Broker)*100/Count({1}Broker)  I get 100% each.

Any solution.

Thxs,

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

=Count(Broker)*100/Count({1} total Broker)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

5 Replies
MayilVahanan

Hi

Try like this

=Count(Broker)*100/Count({1} total Broker)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
alec1982
Specialist II
Specialist II
Author

Thxs!

alec1982
Specialist II
Specialist II
Author

Sorry to inturppt you again, but still have one more thing:

how can i format the number to show the % next to it.

Thxs

v_iyyappan
Specialist
Specialist

Hi,

referred the below image its help for u.

Iyyappan.

MayilVahanan

Hi

Use Something like this

Num((Count(Broker)*100/Count({1}total Broker))/100,'##0.0%')

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.