Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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.

1 Solution

Accepted Solutions
sunny_talwar

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

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

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