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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
Nagaraju_KCS
Specialist III
Specialist III

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
Nagaraju_KCS
Specialist III
Specialist III

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