Skip to main content
Announcements
The way to achieve your own success is the willingness to help somebody else. Go for it!
cancel
Showing results for 
Search instead for 
Did you mean: 
Aspiring_Developer
Creator III
Creator III

Show the total of all values in one single bar Qliksense

Hi All ,

I have below scenario :-

Building Country Value
B1 China 10
C1 china 20
D1 china 30
B2 India 50
C2 India 60
D2 India 70

Filter - Country

Combo Chart
Dim - Building
Measure - Avg(Value)

My requirement is on selection of Country as China for example,
It should show the average of all the value corresponding to China in the country feild and show them as a single bar , similary it should for the rest of the countries.

One bar - avergae of all values of China
Second - average of all values of India

Can anyone please help me ?

Thanks in advance

Labels (1)
1 Solution

Accepted Solutions
salonicdk28
Creator II
Creator II

Try this below expression-

avg(aggr(Avg( total Value),Country))

and under properties->add ons->uncheck include Zero values

salonicdk28_0-1674121044857.png

Thanks,

Saloni

View solution in original post

4 Replies
salonicdk28
Creator II
Creator II

Try this below expression-

avg(aggr(Avg( total Value),Country))

and under properties->add ons->uncheck include Zero values

salonicdk28_0-1674121044857.png

Thanks,

Saloni

Aspiring_Developer
Creator III
Creator III
Author

Thanks @salonicdk28 for your response.

So, here the dimension will be Country or Building ?

Because when I take Country it gives below output :-

Aspiring_Developer_0-1674122090880.png

 

salonicdk28
Creator II
Creator II

No, I have taken Building as dimension as  per your requirement mentioned and country as filter 

Aspiring_Developer
Creator III
Creator III
Author

I also took Building as dimension , but it gives me below output:-

Aspiring_Developer_0-1674122338211.png

Could you please help ?

Thanks