Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a physical table with the following structure:
ID_CLIENT Date Cost1 Cost2 Cost3 Cost4
1 20/12/2013 2 3 1 1
2 20/12/2013 1 1 1 1
I want to transpose in this table in qlikview:
ID_Client Date cost Amount
1 20/12/2013 Cost1 2
1 20/12/2013 Cost2 3
1 20/12/2013 Cost3 1
1 20/12/2013 Cost4 1
2 20/12/2013 Cost1 1
2 20/12/2013 Cost2 1
2 20/12/2013 Cost3 1
2 20/12/2013 Cost4 1
How should I go about it?
Thanks,
PP
Use a LOAD prefix called CROSSTABLE. Very powerful. There is a wizard for this in the Script Editor. See QlikView help for further information.
Peter
Try like:
Crosstable( Cost, Amount, 2) Load * From <>;
See this document
Peter
Hi,
Try this script using Crosstable()
Data:
CrossTable(CostNo, Cost, 2)
LOAD * INLINE [
ID_CLIENT, Date, Cost1, Cost2, Cost3, Cost4
1, 20/12/2013, 2, 3, 1, 1
2, 20/12/2013 , 1, 1, 1, 1
];
Regards,
Jagan.
Thanks!