Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jino_kannen
Contributor III
Contributor III

Join and Like on same table

Is it possible to replicate below similar queries in Qlik?

SELECT distinct(L.ObjectID)
FROM Location L
join Location LL
on
L.HierarchyPath like concat(LL.HierarchyPath ,"%")
and LL.HierarchyPath = '08m9FMK+YkGfdZVOuDn5JQ==.'

example of Values of  field 'HierarchyPath' is like below, wanted to list all object ids of succeeding Hierarchy paths under a given Hierarchy Path

08m9FMK+YkGfdZVOuDn5JQ==.
08m9FMK+YkGfdZVOuDn5JQ==.fTOIO216FEysydjZ+hXPCA==.
08m9FMK+YkGfdZVOuDn5JQ==.fTOIO216FEysydjZ+hXPCA==.CXZbHjLTMkeYzNhM7SjQCA==

1 Solution

Accepted Solutions
jino_kannen
Contributor III
Contributor III
Author

Yup. Thank you!! It works well. 

View solution in original post

4 Replies
Gysbert_Wassenaar

Qlik you'd use the Hierarchy prefix for that: http://help.qlik.com/en-US/sense/February2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefi...

See this blog post for more information and examples: https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325

 


talk is cheap, supply exceeds demand
jino_kannen
Contributor III
Contributor III
Author

Gysbert_Wassenaar

Perhaps you want to use HierarchyBelongsTo prefix then as explained in the blog post I referred to above.

talk is cheap, supply exceeds demand
jino_kannen
Contributor III
Contributor III
Author

Yup. Thank you!! It works well.