HI @rajany089 , here you have an option, without crosstable
Data:
Load * Inline [
A, B, C, D, E, F, G, H
1, ID,123,2024-06-01,1234
1, Name,Tom,2024-06-01,1234
1, Address,US,2024-06-01,1234
1, Age,21,2024-06-01,1234
2, ID,321,2024-09-01,4367
2, Name,Nick,2024-09-01,4367
2, Address,UK,2024-09-01,4367
2, Age, 31, 2024-09-01, 4367
];
Expected:
Load
A as A,
C as ID
Resident Data
Where
B = 'ID';
left join
Load
A as A,
C as Name
Resident Data
Where
B = 'Name';
left join
Load
A as A,
C as Address
Resident Data
Where
B = 'Address';
left join
Load
A as A,
C as Age
Resident Data
Where
B = 'Age';
left join
Load distinct
A as A,
D as D
Resident Data;
left join
Load distinct
A as A,
E as E
Resident Data;
drop table Data;
exit script; /*
QFabian