hello guys need help with something.
I have filtered on the base of similar Account Name and same Ban.
Now, i want to select only that value in Actual Balance Amt column which has Max value of Bill Month
Please check the image given below::
hello guys need help with something.
I have filtered on the base of similar Account Name and same Ban.
Now, i want to select only that value in Actual Balance Amt column which has Max value of Bill Month
Please check the image given below::
Hey @AryanSingh,
Use the excel application scope and read range activity which will return you a datatable.
Then use the expression below:
dt.AsEnumerable().OrderByDescending(function(f) f.ColunName)(0).item(“your Column Name”).ToString()
dt.AsEnumerable().OrderByDescending(function(f) f.ColunName)(0).item(“your Column Name”).ToString()
i am confused that which column name should be entered after f. and after item(
so, this command will let me retrieve the Actual Balance Amt of the Max value of bill month, right??
Use Actual Balance Amt in place of column name.
dt.AsEnumerable().OrderByDescending(function(f) f.ColunName)(0).item(“Actual Balance Amt”).ToString()
Please check this? n suggest me the correction?
Hey @AryanSingh
dt.AsEnumerable().OrderByDescending(function(f) f.Actual Balance Amt )(0).item(“Actual Balance Amt”).ToString()
Hi @AryanSingh
I’ll suggest you to follow these steps
where List1 will hold max of Bill Month according to groups of Ban’s.
and dta is your excel sheet DataTable.
For your better understanding I’m attaching my sample workflow here: GroupByANDmax.xaml (12.7 KB)
So check the Build DataTable to see Input DataTable, then run it and check the output.