Limit the number of Rows of a particular attribute of a column

I have a table with 500 rows and one column has 3 attributes say “L”, “M” and “S”. I want only the top 20 rows of category “L” and top 15 rows of category “M” and top 40 rows of category “S”.
So how can I count the number and filter out only these specific number of rows in each category into a new output table

@ROHINK welcome to the KNIME forum

You could combine a group loop node with a rank or top-k node.


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.