Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
angelompcunha
Contributor III
Contributor III

How to make a chart with distribution of volume of parents with X childs

Hello all,

I'm currently working on developing an application in Qlik Sense where i have a dataset composed by ParentID, ChildID and other fields.

I'm stuck trying to make a chart with the distribution of number of parents with N childs, where the X-Axys would be the number of childs ( 0, 1, 2, 3, >3) and the Y-Axys would be the volume of parents.

I've searched the forums and the web but couldn't find any material that could help me doing that.

Do you guys have any sugestions of how can I make this?

Thankfull for any help

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

Perhaps something along the lines of:

Dimension - =Aggr(Count(distinct ChildID),ParentID)

Measure - Count(distinct ParentID)

I'm not sure if that's exactly it, but it should point you in the right direction at least.

View solution in original post

2 Replies
Or
MVP
MVP

Perhaps something along the lines of:

Dimension - =Aggr(Count(distinct ChildID),ParentID)

Measure - Count(distinct ParentID)

I'm not sure if that's exactly it, but it should point you in the right direction at least.

angelompcunha
Contributor III
Contributor III
Author

 It did work! I hadn't thought of the Aggr function. Thanks for the tip