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

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
SimoneMas
Contributor
Contributor

Unbalanced hierarchy and Pivot Table

I have a problem with an unbalanced hierarchy and its display with Pivot table.

I have two tables (sales and geo):
the first is the sales table made up of
id_geo
month
amount

the second is the table with the hierarchy
id_geo
id_parent
id_geo

the data are as follows

id_geoid_parentname_geo
1 Europe
21France
31Italy
43Lazio
53Lombardia

 

id_geomonthamount
51100
52120
4180
42130
21350
22600

in Qlik I load the two tables in the following way

[geo]:
Hierarchy ([id_geo], [id_parent], [name_geo], [ParentName], [PathSource], [PathName], [PathDelimiter], [Depth])
SELECT [id_geo],[id_parent],[name_geo] FROM geo;

[sales]:
SELECT [id_geo],month,amount FROM sales;

when I create the pivot table I get the following result

immagine.png

how do I delete the "+" or "-" symbol for the France value? (France has no children unlike Italy) I tried different ways (hide empty lines, hide if, HierarchyBelongsTo instead of Hierarchy) but without success.

Thank you

1 Solution

Accepted Solutions
Renato_Gerber_Polynorm
Partner - Contributor
Partner - Contributor

I have the same problem. Now I think the only way is fill up the emty levels with the value from the last entry. So that the hierachy look like a balanced one. Has some one a other idea? 

 

View solution in original post

3 Replies
rklaytonmb
Partner - Creator
Partner - Creator

Hi, SimoneMas 

Do you get solution for it, i have the same situation

Renato_Gerber_Polynorm
Partner - Contributor
Partner - Contributor

I have the same problem. Now I think the only way is fill up the emty levels with the value from the last entry. So that the hierachy look like a balanced one. Has some one a other idea? 

 

aabou
Partner - Contributor
Partner - Contributor

We’ve found a solution to the problem with unbalanced hierachy. We built the Data+ Tree Table for structured hierarchy handling.
Check out this video on YouTube https://youtu.be/reckH5zcXzM?si=uhNR5_5Jw9WyXMfe