
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Qlik SENSE Pie Chart with two measures
Hi all,
I'm working on Qlik Sense and willing to create a Pie chart with two measures.
One of my measures is: sum(Hotel)
The second measure is: sum(AirBnB)
I want to create a pie chart that shows me my share between the two measures above.
It seems so simple but I'm going around and around without figuring out how to solve this one.
Please check what I want to do in the excel example attached.
Thank you for your support.
FC.
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah my bad ! I've misread (it 11pm for me, so
)
this should do it:
as dimension :
valueList('Hotels','AirBnb')
as a measure:
if( valueList('Hotels','AirBnb')='Hotels', sum(Hotel),
sum(AirBnB)
)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can't create a pie chart with 2 measures; but u can do is sthing like follow:
dimension :
=yourDim&' (YourSecondMeasure :'&aggr(num(sum(YourSecondMeasure),'# ##0'),yourDim)&')
Measure:
sum(YourFirstMeasure)
result per analogy :

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And what if I don't have a dimension?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah my bad ! I've misread (it 11pm for me, so
)
this should do it:
as dimension :
valueList('Hotels','AirBnb')
as a measure:
if( valueList('Hotels','AirBnb')='Hotels', sum(Hotel),
sum(AirBnB)
)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That was PERFECT!
Thank you!!!!!
You made my day!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Omar, this is exacly what i've been looking for.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Omar, do you know how to do it using 3 measures, imagine we have sum(hotel), sum(AirBnb), sum(GuestHouse)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same logic Ali
as dimension :
valueList('Hotels','AirBnb','GuestHouse')
as a measure:
if(valueList('Hotels','AirBnb','GuestHouse')='Hotels', sum(Hotel),
if(valueList('Hotels','AirBnb','GuestHouse')='AirBnb', sum(AirBnb),
if(valueList('Hotels','AirBnb','GuestHouse')='GuestHouse', sum(GuestHouse)))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks Omar, works perfectly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you a lot !

- « Previous Replies
-
- 1
- 2
- Next Replies »