I am using the filter data table to filter out required data then I am writing those into a separate sheet. If I want to write sorted data instead of a normal write what should I do?
I want to sum the INT values too at the bottom of the INT value column.
Tanzill_Ahsan:
write sorted data
Hi.
You can use this statement for integer column
dt = dt.AsEnumerable.OrderBy(Function (row) CInt(row("YourColumnName"))).CopyToDataTable
1 Like
thank you but it would be helpful for me if you tell me a bit more detail about where in which sequence I should use this command
Have a look on Sort Data Table activity. It has userfriendly interface and can help you.
Tanzill_Ahsan:
where in which sequence
Write that in Assign activity (see screenshot)
this is the error message I am getting while tryna assign this command in assign act.
Tanzill_Ahsan:
sum the INT values
Create a new variable, use Assign activity, then Add Data Row
sum = dt.AsEnumerable.Sum(Function (row) CInt(row(“Name”)))
maybe I am missing something
using the same command with this design. Maybe there are some internal errors. Thanks again for your help
You should NOT write equals sign in ‘Value’ section, because there is one between ‘To’ and ‘Value’
1 Like
system
(system)
Closed
December 30, 2020, 9:08pm
13
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.