Can you explain what you want to filter?
How much training have you done in UiPath?
KarthikiBygari and ankytheman have told you how to filter for Pay type and hours, you do this in the “Assign” activity. This means that you make a new variable with the filtered data table, does that make sense?
I am attaching a test.xaml file almost same as @Sat did. Please find below explanation for the attached code.
First Read Data From Excel File – Read Range(Either of Workbook or Excel).
Output of read range activity is EmployeeData(A Datatable)
An Assign Acivity is used to filter OVERTIME Data which will return array of datarows.
Another Assign Activity used to declare initial sum which is 0.
Applied for each loop to the array of data rows under which sum is taken for all the rows.
Same can be done for Regular as well. In that case Expression will be like below.
EmployeeData.Select(“Pay_type = ‘REGULAR’”)
Note - There Should not be any space in your headers on which you want to apply filter e.g. Pay Type should be PayType or Pay_type
You Should explore snippets provided by UiPath which can be seen in UiPath Studio.
Please find attached an excel file on which sum is calculated. Place it on your desktop and replace user id with yours from the read range activity( in test.xaml which i provided earlier) and run the test.xaml. It will work absolutely fine.