Sometimes in Channable, you might encounter a situation where it would be handy to duplicate all items, apply an operation to the duplicates, and then merge the results back into the original items.
For example, if you want to calculate a sum at the item_group_id level and then combine it at the id level. Or if you want to check how many unique values there are for a specific field using a deduplicate rule.
In such cases, it’s good to know that this is quite easily achievable. See the following example:

How do you duplicate your items?
The principle is simple:
- Take all items and use a unique field (such as ID) and apply the combine value rule to create an array like ID;ID-alt.
- Then, split this field from text to a list, using the semicolon as a separator.
- Now that it’s a list value, you can use the split items rule to split the values, resulting in each ID having its own duplicate, ending with -alt.
You can then perform operations on your alt-ID by simply using the following IF statement: IF ID ends with -alt.

How do you deduplicate them afterward?
Once you're done with your operations, you can remove the alt-ID in three ways:
- Simply delete all items that end with -alt:

2. Remove -alt from the ID and then deduplicate (where only your original ID remains if you deduplicate on a field with identical values):

3. Remove -alt from the ID and then group by ID (allowing you to transfer values from your alt-ID to your original ID):

The best method depends on what exactly you’ve done with the alt-ID. If you’ve performed a calculation and want the result at the ID level, you may want to group them.
If you used alt-ID purely to check unique values for a field, you’ll probably just want to delete them, so you can use the first or second method.
Channable Duplicate Items Bonus Tip 1:
We typically use -alt, but if such a string could also appear in the field you’re using, for example, if you have an ID like keyboard-button--alt, or if you’re using a rule where you split IDs by hyphen, it’s better to use a different value to define your alt-ID.
Channable Duplicate Items Bonus Tip 2:
Channable has a split item rule limit, which is in place to prevent you from creating projects with, for example, a maximum of 10,000 items and then, with clever split item rules, turning them into 50,000 items. Duplicating your items once should always work, but if you do this multiple times, you’ll eventually hit the limit.
In such cases, you can undo the rule, but sometimes you can also request Channable support to increase the split item rule limit for your account.

