Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
sakthi266
Contributor III
Contributor III

Count Based on Parent and Region

Hi Team, 

            Good Morning. I have a Data Model like mentioned below.  WI_Link , WorkItem , WorkItemId, State, Type ,Parent are from One Table, Tree Level is from Different Table , Region ID From different Table Active is From Different Table connected with Each other in Data Model.  

Table        
    -   
WI_LinkWorkItemTree Level1StateTypeActiveParentRegion ID
11Second (Active) 1 ParentActiveTRUE02.2
21.1Parent(Active) 1 ChildActiveTRUE12.2
31.2Parent(Active) 1 ChildActiveTRUE12.2
41.3Parent(Active) 1 ChildActiveTRUE12.2
52Parent(Active) 2ParentActiveTRUE02.3
62.1Parent(Active) 2ChildActiveTRUE22.2
72.2Parent(Active) 2ChildActiveTRUE22.3

 I need to Show the Count based on Both Parent and Region as If Select 2.2

WI Item NoChild Count
13
Unassigned1

 

Unassigned that is Row No. 6

If I select 2.3 then it should show 

WI ItemChild Count
21

 

Note : There is a problem in Tree Level1 as for the Workitem 1 the name should be Parent(Active) 1  instead of second(Active) 1. So for this I Created a tow table mentioned below.

Parent        
WI_LinkWorkItemTree Level1StateTypeActiveWorkitem as ParentRegion IDKey
11State-Type & WorkItemParentActiveTRUE12.21 & 2.2
52State-Type & WorkItemParentActiveTRUE22.32 & 2.3
         
         
         
Child :         
 WorkItemTree Level1StateTypeActiveParentRegion IDKey
 1.1State-Type & Parent ChildActiveTRUE12.21 & 2.2
 1.2State-Type& Parent ChildActiveTRUE12.21 & 2.2
 1.3State-Type& Parent ChildActiveTRUE12.21 & 2.2
 2.1State-Type& Parent ChildActiveTRUE22.22 & 2.2
 2.2State-TypeChildActiveTRUE22.32 & 2.3
         

 

Now the Answer is coming like this

Region 2.2  
WI ItemChild Count
13 
Unassigned1Not Showing in My Count as I linked with Key Field
   
   
Region 2.3  
WI Item NoChild Count
21 

 

Attached for the Reference. 

Please do the needful. Its very Urgent

Labels (2)
0 Replies