Hello
I want to Filter the Data Between the Row Number 5 & 10.
Row Number 5 and 10 is Fixed.
hi @kishan.savaliya ,
Any condition you need on filtering the rows?
Kind regards,
Kenneth
ppr
(Peter Preuss)
February 23, 2023, 8:49am
3
@kishan.savaliya
when the range is fixed:
we can use it for the read range configs and set the range info to: A6:C9
Another common technique is:
read in the full worksheet with e.g. read range -dtData
Assign Activity:
dtExtract | dataType: DataTable =
dtData.AsEnumerable.Skip(5).Take(4).CopyToDataTable
1 Like
This is not Fixed …Multiple Rows Can Come
Row 5 text and Row 10 Text is Fixed
ppr
(Peter Preuss)
February 23, 2023, 8:58am
7
kishan.savaliya:
Multiple Rows Can Come
then we would recommend the second approach as it can be parametrized / generic calculated
This HowTo gives an introductory overview of the partition Operators: Skip, Take, SkipWhile, TakeWhile
Introduction
The partition operators are used to fetch a particular subset from a set of items. The returned subset is formed by the contiguous items that are matching the provided condition.
Skip / Take Operator
The Skip Operator will omit the subsequent items from the given start for a given length and will return the remaining items
The Take Operator will return the subsequent items fr…
hi @kishan.savaliya ,
We can make this approach:
Put the values of the Row 5 text and Row 10 text into a String Array variable.
StringArrayVariable = {“ABC3”, “ABC8”}
Now, when you loop on each row of your data table we can add a checking/validation inside the For Each Row in DataTable with an If statement
If Statement
Condition: StringArrayVariables.Contains(CurrentRow(“Column1”).ToString)
Then: //do the actions for row 5 and row 10
Else: //do other actions.
I hope this helps. Happy automation!
Kind regards,
Kenneth