Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have table A which is having column ID , Name,SupervisorID
ID Name SupervisorID
1 A 3
2 B
3 C 2
4 D 2
I want to show ID , Name, Supervisor Name , without using hierarchy load .
How about something like this ?
Temp:
LOAD * INLINE [
ID, Name, SupervisorID
1, A, 3
2, B
3, C, 2
4, D, 2
];
SuperMap:
Mapping
load
ID as SupervisorID,
Name as SupervisorName
resident Temp
;
Data:
NoConcatenate
load
ID,
Name,
SupervisorID,
applymap('SuperMap',SupervisorID, null() ) as Supervisor
resident Temp
;
drop table Temp ;
what do you mean by hierarchy load
How about something like this ?
Temp:
LOAD * INLINE [
ID, Name, SupervisorID
1, A, 3
2, B
3, C, 2
4, D, 2
];
SuperMap:
Mapping
load
ID as SupervisorID,
Name as SupervisorName
resident Temp
;
Data:
NoConcatenate
load
ID,
Name,
SupervisorID,
applymap('SuperMap',SupervisorID, null() ) as Supervisor
resident Temp
;
drop table Temp ;
You may use HIERARCHY load using ID as NodeID, SupervisorID as ParentID.
Qlikview 'Help' gives the details of Hierarchy prefix.