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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hcabrera
Contributor III
Contributor III

load script with Hierarchy()

Hi,

I have a table Data need load script for show pivot table in the example:

Table   Data                                                 Pivot Table

IXKITL,  IXLITM                                   IXKITL, IXLITM,   IXKITL1, IXLITM1 .... IXKITLN

A            a                                                 A          a               1             I

A            b                                                 A          a               1            II

A            c                                                 A          a               1            III

a            1                                                 A          a               2

a            2                                                 A          a               3

a            3                                                 A          b

1            I                                                  A          c

1            II                                            

1            III

thanks for your help !!

Henry C.

2 Replies
Anonymous
Not applicable

More info on your needs and logic please!

hcabrera
Contributor III
Contributor III
Author

Hi Aron, thanks for answer,  I need use Hierarchy () or HierarchyBelongTo()  function for this table

  

TABLE
IXKITIXITMIXLITM
573985752001GENCAL0008            
574075739804GENCAL0005            
574079990901GENESC0001            
574075740404GENARC0003            
574075740205GENARC0001            
574085740704GENCRU0001            
733065740804GENCRU0002            
733065764401GENCAL0009            
733065740301GENPUZ0001            
7330699048

01GENYES0005            

Show as:

   

RESULT
IXKITIXITMIXITMLIXITM1IXITM2IXITM3
733065740804GENCRU0002             574075739857520
733065740804GENCRU0002             5740799909
733065740804GENCRU0002             5740757404
733065740804GENCRU0002             5740757402
733065764401GENCAL0009            
733065740301GENPUZ0001            
733069904801GENYES0005            

thanks,

Henry C.