I am getting data like below. Need to remove empty cells:
Expected output:
It looks like your input table is a pivot table with filters and other settings.
Check the data source of the data and from there you can get the desired data easily than reworking on the data.
try to use below linq
Use build data table activity to create a new data table with respective column names.
after use assign activity, pass that new data table in to section and in value section you can ad below expression
(From row In dtInput.AsEnumerable()
Where Not String.IsNullOrWhiteSpace(row(“ProductName”).ToString)
Select dtOutput.Rows.Add(
row(“ProductName”).ToString.Trim,
dtInput.Rows(dtInput.Rows.IndexOf(row) + 1)(“Quantity”).ToString.Trim
)).CopyToDataTable()
after that you can use wirte range activity to write your data in excel or you can use that data table in your flow
output
Please mark it as solution, if you find it helpful
Happy automation!!