Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
shruthibk
Creator
Creator

How to aggregate based on hierarchy

Hi all,

i am facing an issue while aggregating data based on hierarchy.

Requirement is like there are level 1 to level 4 managers and there are some issues assigned to them,i have to build a chart where it shows the issues count under each employee.

The challenge i am facing is whenever the user selects level for ex.if user selects level 4 total issues assigned to each employees should show but when user selects level3 ,the counts of level4 employees should show under level 3 managers same way for level2 and level1.

attaching the screen shot of data after hierarchy implementation .

thanks

shruthi

5 Replies
sunny_talwar

Not entirely sure I understand your scenario... Do you have a sample you can share with expected output?

shruthibk
Creator
Creator
Author

hi expected output should be without filter

empnames,count

deepak,2

ashok,2

vikash,2

shubham,2

gupta,2

shruthi,2

if the user selects level3  expected output:

empnames,count

deepak,2

ashok,2

vikash,4

shubham,4

if the user selects level2

empnames,count

deepak,2

ashok,10

sunny_talwar

Sounds good about the expected output.... but are you able to share a sample. Images are not very helpful to work with

shruthibk
Creator
Creator
Author

i don't see any excel attachment option here:(

below is the sample data,which looks exactly as the actual data i am working

 

issueidempnameslevelslevel1level2level3level4
12Deepak1Deepak
13Ashok2DeepakAshok
14vikash3DeepakAshokvikash
15shruthi4DeepakAshokvikashshruthi
16gupta4DeepakAshokshubhamgupta
6shubham3DeepakAshokshubham
43Deepak1Deepak
78Ashok2DeepakAshok
7vikash3DeepakAshokvikash
5shruthi4DeepakAshokvikashshruthi
1gupta4DeepakAshokshubhamgupta
42shubham3DeepakAshokshubham
shruthibk
Creator
Creator
Author

attached the sample data