Dear all,
I would like to check if it is possible to transpose a datatable with Linq.
Most guide shows from a tabular format (B) to (A) but not the other way round.
Appreciate the community help and thank you in advance!
Sample Data
New Microsoft Excel Worksheet.xlsx (9.4 KB)
A. Raw Data
Row Number | Sales | Purchase | Derivative | Entrust | Ship Sales |
---|---|---|---|---|---|
1 | AOK | CC |
B. Expected Result
Row Number | Commodity | Value |
---|---|---|
1 | Sales | AOK |
1 | Purchase | |
1 | Derivative | |
1 | Entrust | CC |
1 | Ship Sales |
Regards
Hidayat