Transpose the datatable

Hi, i have a datatable dt which needs to transposed to do further operation.

input dt:-

output dt:-
image

As you can see in the transpose datatable I dont need the “Mapping” column and the column headers from the input dt.

@Yoichi

HI @SunnyJha

Check the below thread:

Regards

I had tried this but wasn’t able to understand.

Hey @SunnyJha

Try This.

@SunnyJha
Give a try at this starter help

Variables:

Flow:
grafik

kwr = dtData.DefaultView.ToTable(False, {"Keyword"})
Add DataColumn Details:
grafik

dtTransposed = 
(From i In Enumerable.Range(0, dtData.Columns.Count).Skip(2) 
Let ra = dtData.AsEnumerable.Select(Function (x) x(i)).ToArray
Select r = dtTransposed.Rows.Add(ra)).CopyToDataTable

HI @SunnyJha

Xaml:
Sequence51.xaml (8.6 KB)

Input:
Input 7.xlsx (9.0 KB)

Screenshot:

Regards

Hi @SunnyJha

You can use the below workflow also:

Sequence:
Sequence51.xaml (10.9 KB)

Input:
Input 7.xlsx (9.5 KB)

Screenshot:

Regards

Thanks Petr. I made some modifications on your logic and its working as per my need. Thanks again!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.