Hi,
I’m stuck and need some help. I have a Datatable and I want to get the highest value in Column-1. Is there a way I can do this? Btw, I’m using C#.
Thanks
Hi,
I’m stuck and need some help. I have a Datatable and I want to get the highest value in Column-1. Is there a way I can do this? Btw, I’m using C#.
Thanks
Hi,
Can you try the following expression? this returns max value as double type
dt.AsEnumerable().Max(r => Double.Parse(r["Column-1"].ToString()))
If there is non-numeric value (including empty), we need to add expression to filter it.
Regards,
we would recommend to let us know the datatype of the column value. lets assume doube
YourDataTableVar.AsEnumerable.Max(x => Convert.ToDouble(x["ColName"].ToString())
Also have a look here:
Thank you for this. Would I put this in an Assign activity?
They’re 5 or 6 figure integers
Hi @paulparkes
maxResult = Convert.ToDouble(dt.Compute(“MAX([” + columnName + “])”, “”));
Hope it helps!!
Regards,
Convert.ToInt32 method
Thanks for this. I’m now seeing this message:

How do I resolve this message?
Thanks
Hi,
Can you try the following step?
First, save the xaml file.
Next, close UiPath Studio.
Then restart UiPath Studio.
Re-open the project. then probably automatic recovery will start.
Regards,
Thank you so much! ![]()