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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Bar Chart Data in %

Hello,

I have two dimensions, country, and type of business.

I am trying to show data as percentage.

Capture.PNG

I would like to have for Spain, for one part 51% and the other 49%.

I have tried clicking on relative, however it is giving me the percentage not by country but of the total.

i hope you can help me.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

You had this as expression?

Count(TOTAL {$<SEGMENT={'PLANE'}>}SHARE)

or this

Count({$<SEGMENT={'PLANE'}>}SHARE)

May be try this

Count({$<SEGMENT={'PLANE'}>}SHARE)/Count(TOTAL <Country> {$<SEGMENT={'PLANE'}>}SHARE)

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

Try this

Sum(Measure)/Sum(TOTAL <Country> Measure)

Anonymous
Not applicable
Author

hello,


Originally, i have this expression, COUNT(total{$<SEGMENT={'PLANE'}>}SHARE).


doing what you told me it is not working however i think that is more that i haven´t written well the expression.


COUNT(total{$<SEGMENT={'PLANE'}>}SHARE).

/

COUNT(total{$<SEGMENT={'PLANE'},COUNTRY>}SHARE).



sunny_talwar
MVP
MVP

You had this as expression?

Count(TOTAL {$<SEGMENT={'PLANE'}>}SHARE)

or this

Count({$<SEGMENT={'PLANE'}>}SHARE)

May be try this

Count({$<SEGMENT={'PLANE'}>}SHARE)/Count(TOTAL <Country> {$<SEGMENT={'PLANE'}>}SHARE)

Anonymous
Not applicable
Author

It worked perfectly