How can I group items by a text value?

This article will explain how to group items in the feed, by a text value.

"Squeeze line" is an action you might chose to make if you have different versions of an item, which causes many repeated lines in the feed - each with its own version.

For example - sizes of a clothing item, or different cities where a hotel chain exists in.

There are 6 types for the same city:

Since the values for type repeat, we will first remove duplicates on the type column:

Then, we can aggregate them into one line on the city column: