Jorie_02
(Jorie 02)
January 24, 2024, 11:36am
1
I have datatable like this
I want the blank cells in column1 to fill like this
vrdabberu
(Varunraj Dabberu)
January 24, 2024, 11:38am
2
Hi @Jorie_02
PLease check the below thread
Hi,
Can you try the following expression?
dt = dt.AsEnumerable.Select(Function(r,i) dt.Clone.LoadDataRow({dt.AsEnumerable.Where(Function(r2,i2) i2<=i andAlso not String.IsNullOrEmpty(r2(0).ToString)).Last.Item(0).Tostring,r(1)},False)).Where(Function(r) not String.IsNullOrEmpty(r(1).ToString)).CopyToDataTable()
Regards,
Regards
vrdabberu
(Varunraj Dabberu)
January 24, 2024, 11:52am
3
Hi @Jorie_02
Use the below in Assign activity:
dt1 = dt1.AsEnumerable.Select(Function(r,i) dt1.Clone.LoadDataRow({dt1.AsEnumerable.Where(Function(r2,i2) i2<=i andAlso not String.IsNullOrEmpty(r2(0).ToString)).Last.Item(0).Tostring,r(1)},False)).Where(Function(r) not String.IsNullOrEmpty(r(1).ToString)).CopyToDataTable()
workflow:
Sequence1.xaml (10.9 KB)
Input:
Output:
ppr
(Peter Preuss)
January 24, 2024, 11:53am
4
Done within an essential modelling:
E.g.
Before:
After Fillup:
system
(system)
Closed
January 27, 2024, 11:53am
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.