Hello All,
I have a following input,
From Date = “12/22/2023” , RowCount=6
ToDate = "12/28/2023’, RowCount=1
The below mentioned screenshot is my dt.
I would need a output like follow,
Means I need to get the table from 12/22/2023 6 to 12/28/2023 1 in the table
Is there any possibilities.
Thanks in Advance
@manikandan.murugan
Use filter datatable activity for this.
And sort datatable by date column
Thanks,
Ashok
1 Like
Ajay_Mishra
(Ajay Mahendra Mishra)
April 8, 2024, 10:06am
3
Hey @manikandan.murugan
Please confirm that output table will have 4 rows? cause you have added 12/23/2023 twice!
Regards,
Ajay Mishra
1 Like
ppr
(Peter Preuss)
April 8, 2024, 10:13am
4
you can check the skipWhile combined with a takeWhile approach
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…
Yes output will have 4 rows @Ajay_Mishra
Ajay_Mishra
(Ajay Mahendra Mishra)
April 8, 2024, 10:39am
6
@manikandan.murugan You need a static output for this particular input or your input can change accordingly?
Input will change the input I provided as a sample
ppr
(Peter Preuss)
April 8, 2024, 11:18am
8
kindly note, as we gave the first option:
Another strategy could be to retrieve the row index from the first row and last row and using skip / take
Ajay_Mishra
(Ajay Mahendra Mishra)
April 8, 2024, 11:22am
9
@manikandan.murugan Okay so, the explanation given by you will generate a static output and I can provide you static solution but, can you elaborate more about input datatable and dynamic condition that will be applicable in all scenarios?
Regards,
Ajay Mishra
system
(system)
Closed
May 3, 2024, 4:35am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.