How to filter rоws in date table ......?

Hello,

How can I filter only the rows that contain exactly 15 characters(in blue arrows) ???
Capture

Four Ways to Filter Data Tables in UiPath Studio | UiPath

Assign Activity
dtFiltered =

(From d in dtDataVar.AsEnumerable
Where d(0).toString.Trim.Length.Equals(15)
Select r = d).CopytoDataTable

handling empty result:

1 Like

image

“d” = Column name or ?
and “r” = ?

d / r a acting like local variables referencing the looped row

Shouldn’t the column name be specified somewhere?

we recommend to check if some courses e.g UiPath Academy will help for the basics

we used the access by column index and can use also column name.

(From d in dtDataVar.AsEnumerable
Where d("Column-0").toString.Trim.Length.Equals(15)
Select r = d).CopytoDataTable
1 Like

Thanks, it worked !!!

@radoslav.spasov
Perfect so the topic can be closed