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

Show Result on Parent Row

Hi All,

i am facing the issue as below.

Simple data as:

CoL1CoL2CoL3Result
Parent1Activity1Parent1
Child1Activity2Parent1
Child2Activity3Parent15
Child3Activity4Parent1
Child4Activity5Parent1


here i want to count the number of Activities performed on Parent+Child, and the result will be display on Parent row only. which is not happening above. for above problem i written expression for result as :

AGGR(Distinct Count([CoL2]),[COL3])

Expected result will be :

CoL1CoL2CoL3Result
Parent1Activity1Parent15
Child1Activity2Parent1
Child2Activity3Parent1
Child3Activity4Parent1
Child4Activity5Parent1

Is there a way to display the count for Parent row only not for Child.

OR is their any other way to get this expect AGGR?

[NOTE: i am using the Qlik Sense 2.2 edition]


I hope I made myself clear.


Thanks,

Rahul

1 Solution

Accepted Solutions
sunny_talwar

Or may be this:

If(Col1 = Col3, Count(DISTINCT TOTAL <Col3> Col2))

View solution in original post

3 Replies
OmarBenSalem

Maybe like this?

if(CoL1='Parent1',AGGR(Distinct Count([CoL2]),CoL3))

Capture.PNG

sunny_talwar

Or may be this:

If(Col1 = Col3, Count(DISTINCT TOTAL <Col3> Col2))

OmarBenSalem

I would go with Sunny's expression which work with all the next 'Parents' values. While mine is rather static.