I have given the input and output datatables. The below is my requirement. Could anyone please help me witht eh LINQ query for this.
For String type columns (“Name” and “Place”) ,I want to get the number of records for each column in different datatable excluding the whitespaces or null.
For Numeric type columns (“Age” and “Marks”), I want to get the sum of all column values excluding any character values. In case of any characters, i will have to just mention ERROR.
Input:
Output:
Please let me know if there is any other easy way too.
@ppr - Hope, you would be able to help me on this pls.
You should use DataTable Aggregate functions to do this. Please download below package from either Uipath Connect or through Manage packages and then use DataTable Aggregate functions.
If you are not familiar with linq, just dont use it… Do the way you know how, should be quite easy to simply use a for each row with a few if conditions and count every column…
@Sugumar8785
some words were lost from my post above, as I was on the rush. But I do think similar as mentioned in the other posts. You will learn and get more when you will decompose the work into smaller tasks. And you can explore different concepts and techniques. This will let you grow. So coming back to my question: are you interested on a different guidance?
If yes so do first thing:
explore the different ways on how to do aggreagations (e.g. sums)