Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
matthewjbryant
Creator II
Creator II

Working with Hierarchies

Hi All,

Have any of you ever worked with hierarchical data in Qilkview? I've written a SQL statement that shows me all our parts and how they are linked to their component parts. Level 1 parts are used to make a level 2; level 2 to make level 3; and so on.

My problem now is linking these hierarchies together. As you can see in the example below it is easy to work with the first 3 lines, but on line 4 I have a part that is liked to the first line, and for part g I have a part that is linked to parts d and a. How can I find the hierarchical products of all the Sales Parts' quantities (i.e. for part g I need to multiply 3x6x2).

Example Data:

Level

PartQty UsedSales
1a2Y
2b1N
3c5Y
2d6Y
3e5N
4f2Y
3g3Y
1h6N
2i3Y

Required result:

Sales PartQty Product
a2
c10
d60
f120
g36
i18
0 Replies