bestRobot
(bestRobot)
February 28, 2022, 1:40pm
1
Hello. How can I group specific rows in the datatable where specifically the columns col0,col1,col2 and col3 have the same values (the value can be random so I can not hardcode it) and filter the rest, regardless of col4 or col5. If one of the value of columns from (col0,col1,col2 and col3) is different it should be kept out of the grouping.
col0 col1 col2 col3 col4 col 5..
1 1 1 1 3 4
**1 1 1 2** 4 5
1 1 1 3 6 7
1 2 1 1 8 9
**1 1 1 2** 9 1
2 3 4 5 2 3
2 3 4 9 5 7
Thanks!
bestRobot
(bestRobot)
February 28, 2022, 1:40pm
2
col0 col1 col2 col3 col4 col 5…
1 1 1 1 3 4
1 1 1 2 4 5
1 1 1 3 6 7
1 2 1 1 8 9
1 1 1 2 9 1
2 3 4 5 2 3
2 3 4 9 5 7
The selected rows should be the ones in bold
ppr
(Peter Preuss)
February 28, 2022, 2:11pm
3
@bestRobot
Welcome to the forum,
have a look on post below as it has a potential to adopt it to your case:
@shirin.sebatina
as an alternate find a genric stack logic approach. From the created report we can calculate other information e.g. Excel ranges.
input / output
[grafik]
RIX=RowIndex
CIX=Column Index
Variables:
[grafik]
SeqLen our minum subsequent Sequence length
Flow:
[grafik]
[grafik]
we are creating a helper tuple with rix, cix value info
we do group it on value per row
then we process the groups
put group on stack
find subsequent sequence - tmpSeq
add details to the report…
Hi @bestRobot ,
Is this what you were looking for?
GroupingByMultipleColumns.xaml (6.5 KB)
TestData.xlsx (8.6 KB)
Kind Regards,
Ashwin A.K
1 Like