Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sugarp
Contributor II
Contributor II

How to create hierarchy in load editor(inline load) or any other way

1672914725088833802597752617174.jpg

Labels (1)
2 Replies
QFabian
Specialist III
Specialist III

Hi @Sugarp , you can fill the empty cells using peek() function

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFun...

Example :

Aux:
Load * INLINE [
Number, Title, Category
1, Emergency, Group
,, name
,, location
,, nationality
,, local
,, non critical
,, Critical
2, Risk, Group
,, name
,, location
,, nationality
,, local
,, non critical
,, Critical
];

Data:
Load
if(isnull(Number) or Number = '', peek(Number1), Number) as Number1,
if(isnull(Title) or Title = '', peek(Title1), Title) as Title1,
Category

Resident Aux;
drop table Aux;

exit script;

QFabian
parkerpalmer
Contributor
Contributor

Here is how to make hierarchy:-
Load * INLINE [
Number, Title, Category
1, Emergency, Group
,, name
,, location
,, nationality
,, local
,, non critical
,, Critical
2, Risk, Group
,, name
,, location
,, nationality
,, local
,, non critical
,, Critical
];

Data:
Load
if(isnull(Number) or Number = '', peek(Number1), Number) as Number1,
if(isnull(Title) or Title = '', peek(Title1), Title) as Title1,
Category

Resident Aux;
drop table Aux;

exit script;