Hello All,

Case 1: I need to fetch all the fruit count without hardcoding the value. Eg: Orange =3, Banana=4
Case 2: I need fetch the past and future date.
How it can be achieved?
Hello All,

Case 1: I need to fetch all the fruit count without hardcoding the value. Eg: Orange =3, Banana=4
Case 2: I need fetch the past and future date.
How it can be achieved?
Don’t want to spoil your learning adventure so just giving you the pointers.
This would be achieved with LINQ Groupby
Use LINQ to filter data based on Date of completion
Thanks,
Ashok ![]()
Thank you so much for the pointers.
Will try to complete it and let you know.
Partially i am getting the solution.
My input file is:

But while debugging, the input in the local panel seems different.

So i am getting the output as:
Can you please help me??
GroupByCount.xaml (8.2 KB)
AA Usecase.xlsx (9.9 KB)
Follow these steps.

2.Use this LINQ in Assign activity
(From row In dtInput.AsEnumerable() Group row By name = row("Name").ToString() Into Group Select dtResult.Rows.Add(name, Group.Count())).CopyToDataTable

Output:

Thank you so much. It Worked
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.