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: 
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

2 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?