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: 
kennethand
Contributor III
Contributor III

Bar chart with different type of data structure

I like to make a bar chart showing the distribution (sum to 100%) of The Residence out of where people consider to live.

 

This is a snip off my data (every ID has a weight):

 

IDCommunityParameter
2018_4_1AConsider
2018_4_1BResidence
2018_4_100AConsider
2018_4_100BConsider
2018_4_100CResidence
2018_4_1016DConsider
2018_4_1016DResidence
2018_4_114AConsider
2018_4_114DResidence
2018_4_1190BConsider
2018_4_1190CConsider
2018_4_1190DResidence

 

IDWeight
2018_4_10,651951
2018_4_1001,126967
2018_4_10161,355012
2018_4_1140,553152
2018_4_11901,868304

 

I have a filter pane with 'Community' and if I fx. choose 'A' I like to show bar chart showing:

 

 
 

Præsentation2.jpg

 

I need to sum the weight using disinct ID of who is considering 'A' and calculate the % out of them distributed per residence.

The challenge is the way the data is structured. 

Is it somehow possible to solve this using the right expression?

 

 

1 Reply
lfetensini
Partner - Creator II
Partner - Creator II

If you need fix Community A:

Sum(
{<
Community = {'A'}
>}
Weight
)

 

If incorrect, print and show your load script and Internal View Tables for a better understanding of your case

Support your colleagues. Remember to "like" the answers that are helpful to you and flag as "solved" the one that helped you solve. Cheers.