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: 
priyanka08
Contributor III
Contributor III

Query

How to achieve children column from  below data using SQL function not hierarchy  function pf QLikview

 

  fac_id parent_id root_id children
4 ABC1051458 LIM1001308 LIM1001307 [ABC1051458, ABC11001309, ABC1371459]
6 ABC11001309 LIM1001308 LIM1001307 [ABC1051458, ABC11001309, ABC1371459]
8 ABC1371459 LIM1001308 LIM1001307 [ABC1051458, ABC11001309, ABC1371459]
Labels (4)
1 Solution

Accepted Solutions
qv_testing
Specialist II
Specialist II

Try this..

Data:
LOAD * INLINE [
Row, fac_id, parent_id, root_id
4, ABC1051458, LIM1001308, LIM1001307
6, ABC11001309, LIM1001308, LIM1001307
8, ABC1371459, LIM1001308, LIM1001307

];
left join
LOAD Concat(fac_id, ',') as Children,
parent_id
resident
Data group by parent_id;

View solution in original post

2 Replies
qv_testing
Specialist II
Specialist II

Try this..

Data:
LOAD * INLINE [
Row, fac_id, parent_id, root_id
4, ABC1051458, LIM1001308, LIM1001307
6, ABC11001309, LIM1001308, LIM1001307
8, ABC1371459, LIM1001308, LIM1001307

];
left join
LOAD Concat(fac_id, ',') as Children,
parent_id
resident
Data group by parent_id;

priyanka08
Contributor III
Contributor III
Author

Thankyou so much for provide  quick and correct response