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: 
veeranj
Creator II
Creator II

aggregation on group level ????????

HI All,

COMPratingNAME
A1subbu
A1MANI
A2NANI
A2BUJJI
A2CIHNNU
B1ANJEE
B2MANI
B3NANI
B4BUJJI
B5CIHNNU

when we calculate average for COMP--A, Avg was 1.6,now i want to display the people count how many are above average and how many are below average.

if we round 1.6 to 2,then it should show count below avg as 2(subbu and mani)

Thanks,

Anjee

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Like This?

UPDATED FILE..

View solution in original post

7 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Here it is an example

veeranj
Creator II
Creator II
Author

HI,

Thanks for ur quick response.

I need the representation in barchart like how many people are above avg and how many are below avg.

dfdfd.bmp

Can you please suggest .

Thanks,

Anjee

MK_QSL
MVP
MVP

Like This?

MK_QSL
MVP
MVP

Like This?

UPDATED FILE..

veeranj
Creator II
Creator II
Author

HI ,

almost same as that only .

now i tried developing the count based on expression

=count({<Flag={'Above'}>}NAME).

I am getting the count.

earlier i tried this expression .

for BELOW expression :count({<rating={"<$(=ceil((avg(rating))))"}>}distinct name)

For ABOVE expression

dimension as comp

count({<rating={">=$(=ceil(avg(rating)))"}>}distinct name)

but i didnt got any result.


Is there any way of  writing directly in the  chart itself.

Can you please suggest me where i am getting wrong.


Thanks,

Anjee

MK_QSL
MVP
MVP

Check my another reply...

veeranj
Creator II
Creator II
Author

HI,

Here there will be only one dimension that is COMP.

based on that dimension ,we have to show the expressions like how many are below average and how many are above average .

like i have showed you in the above attached image that blue shows "what is the count of people who are above avg and grey shows " what is the count  of people below avg".

count({<rating={">=$(=ceil(aggr(avg(rating)),comp)"}>}distinct name)

Can you please suggest me whats wrong in the above expression.

Can we write in this way.

The solution you have provided is correct and it is working.

below.bmp

Thanks,

Anjee