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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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
MVP
MVP

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;

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
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;