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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Dayna
Creator II
Creator II

Hierarchy and Depths

Dear all,

I have been trying to achieve a Bill of Materials using various functions, and finally I was able to achieve (I think!) what I needed using the HierarchyBelongsTo function…

However, my costs are wrong as the higher level components include the costs for the lower level, so what I need to do is ignore the cost for any component that has a sub component. But how do I go about calculating which item belongs to which?

Here is an example output of data:

Comp

LL Cost Comp

TL Cost Comp

Depth

SA9500FW1

0.206807692

0

0

SA9500FW2

0.219461539

0

0

6852A

0

0.228

1

20935H

0

0.0198

1

20940H

0

0.0198

1

4488

0.23199834

0

1

4489

0.23043029

0

1

5011

0

0

1

5011

0

5

1

5011

0

7.5

1

6857

0

0.159

1

10859

0

0

1

10859

0

0.003744164

1

10859

0

0.00425

1

10859

0

0.0139

1

31055

0

0.1354

1

7008

0

0

2

7008

0

83

2

7008

0

104.89

2

7035

0

0

2

7035

0

29.5

2

7035

0

62.1

2

7143

0

0

2

7143

0

2.92

2

7143

0

3.1

2

7143

0

3.17

2

7157

0

0

2

7157

0

1.89

2

7157

0

2.24

2

7173

0

0

2

7173

0

6.89

2

7173

0

9.7

2

7241

0

0

2

7241

0

12.8

2

7241

0

13.73

2

7244

0

0

2

7244

0

1.8

2

7244

0

2.3

2

7246

0

0

2

7246

0

2.9

2

7246

0

3.49

2

7259

0

0

2

7259

0

3.15

2

7259

0

4.6

2

7304

0

0

2

7304

0

0.195

2

7304

0

0.31

2

7428

0

0

2

7428

0

16.35060001

2

7428

0

16.43919

2

7440

0

0

2

7440

0

3.507457604

2

7440

0

4.5

2

Many thanks for any help you could provide!!

Kind Regards,
Dayna

1 Solution

Accepted Solutions
Not applicable

IS this what you mean?

View solution in original post

14 Replies
Dayna
Creator II
Creator II
Author

Does anybody have any idea?

Not applicable

why not do this? (set analysis?)

Not applicable

or this? Maybe better?

Dayna
Creator II
Creator II
Author

Hello Jochem,

Thank you so much for your response, unfortunately I've tried the application but I would need it to show the sub component, as each product may have components that go in it...

Here was an example set of data I had previously uploaded:

http://community.qlik.com/forums/p/35985/141424.aspx#141424

Kind Regards,
Dayna

Not applicable

isn't the second example what you mean with this?

Dayna
Creator II
Creator II
Author

Hello Jochem,

The second example shows the top level, but doesn't seem to show the sub components. Please see below:

Not applicable

can you send me your qvw?? because i'm missing some things (parts)

Not applicable

about your other post

Dayna
Creator II
Creator II
Author

Please find attached 🙂