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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
CJIGA
Contributor II
Contributor II

FlatToHierarchyLoop Example

Hi:

I am trying to use the FlatToHierarchyLoop, but I can't solve my problem. I have the following information:

 

ID|COUNTRY|STATE_ID|STATE

1|USA|1|TN

1|USA|2|NY

1|USA|3|KY

2|PERU|4|LIM

2|PERU|5|CUZ

 

I expect the following result:

<root>
        <ID>USA</ID>
       <states>
             <state>

                    <state_id>1</state_id>

                    <state>TN</state>

             </state>

             <state>

                    <state_id>2</state_id>

                    <state>NY</state>

             </state>

       </states>

</root>

 

Please your help to give me the solution with FlatToHierarchyLoop function in Data Mapper.



 

 

 

Labels (2)
10 Replies
Haitao
Creator
Creator

@CJIGA
It seems to be a different issue, could you create a new topic with Label "Talend Data Mapper" for it, please?