Forum Discussion

Tanmay_Sarkar's avatar
Tanmay_Sarkar
New Contributor III
4 years ago
Solved

Group by fields with specific group size

Hello All, Is there a way we can use group by fields limited to a group size? Group by fields snap doesn’t let us specify a group size, so if we try to create groups based on a field, whether the o...
  • SpiroTaleski's avatar
    4 years ago

    @Tanmay_Sarkar

    What if we want to create different groups with similar field of similar size. For instance, if there is a field called ‘id’ with value ‘5’ and it occurs 20 times in an input, can we create 4 groups out of it with each group containing 5 values. If it were 22, it should create 5 groups.

    You can try with:
    After grouping the records by field, to have child pipeline that will receive each group of records, will split, and then using the Group by N Snap to group the records again with specifying the group size.

    Regards,
    Spiro Taleski