# Get largest value?

**URL:** <https://forum.uipath.com/t/get-largest-value/729976>\
**Category:** Studio\
**Tags:** workflow-diff, question, studio, system, activities\
**Created:** [March 26, 2024, 10:43am UTC](https://forum.uipath.com/t/get-largest-value/729976 "2024-03-26T10:43:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [March 26, 2024, 11:44am UTC](https://forum.uipath.com/t/get-largest-value/729976/4 "2024-03-26T11:44:21Z")

</div>

still a sample output would help as asked by us

Maybe you are looking for this:

 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/6/c/2/6c25e03f1636d94416f2eaa1b0037e381ab37de3.png)

Assign Activity:  
arrNames | String Array =

```auto
(From t In dtData.Rows(1).ItemArray.Select(Function (x,i) Tuple.Create(i,x)).Skip(1)
Let x = t.item2
Let x1 = If(isNothing(x) OrElse String.IsNullOrEmpty(x.ToString), int32.MinValue.ToString, x.ToString)
Let xp = If(int32.TryParse(x1, Nothing), Int32.Parse(x1), int32.MinValue)
Order By xp Descending
Select cn = dtData.Columns(t.item1).ColumnName).Take(3).ToArray

```

> [@\[HowTo\] LINQ (VB.Net) Learning Catalogue](https://forum.uipath.com/t/howto-linq-vb-net-learning-catalogue/325671):
>
> This topic references the different Learning HowTos related to LINQ. It will be updated on new published HowTos as well LINQ Learning: Topic LINK First Start with LINQ [[HowTo] - First Start with LINQ (VB.Net)](https://forum.uipath.com/t/howto-first-start-with-linq-vb-net/318964/) Exploring the LINQ universe [[HowTo] - Exploring the LINQ Universe (VB.Net)](https://forum.uipath.com/t/howto-exploring-the-linq-universe-vb-net/325667)Operator [HowTo] Overview Topic LINK Where [[HowTo] LINQ - First Start # Where Operator](https://forum.uipath.com/t/howto-linq-first-start-where-operator/464108) Select work in progress Any [[HowTo] LINQ – First Start # Any Operator](https://forum.uipath.com/t/howto-linq-first-start-any-operator/466138) All [[HowTo] LINQ – First Start…](https://forum.uipath.com/t/howto-linq-first-start-all-operator/467292)

---

_[View the full topic](https://forum.uipath.com/t/get-largest-value/729976)._
