Hi Darius,
Assuming that the concatenation should be performed for each Site group (1A, 2Z, and 3W in the example), I would use two Aggregators in a series.
1st Aggregator
Group By: SiteCode, County
Mode: Attributes Only
Keep Input Attributes: Yes
Attributes to Concatenate: Region
Separatoe Character: & (surround by whitespaces)
2nd Aggregator
Group By: SiteCode, Region
Mode: Attributes Only
Keep Input Attributes: Yes
Attributes to Concatenate: County
Separator Character: & (surround by whitespaces)
If you will respect the order of input features, expose "xlsx_row_id" in the Excel reader feature type, and insert the Sorter between the two Aggregators to sort by "xlsx_row_id".
Takashi
Takashi, your approach worked nicely and efficiently. I didn't think the solution was so straightforward.
Thanks for your priceless help!
Darius
Good to hear that you accomplished the purpose.
In addition, try setting "Yes" to "Input is Ordered by Group" parameter of the Aggregators, if rows which contain attributes that should be concatenated are always consecutive. In this case, the Sorter would not be essential to keep the input order.
Hi All,
Thank you I found this very useful, I have started the workbench as seen in the attached, and it is working fine, but the problem that I got simillar value in the row (attached), any Idea how to remove the identical value in the row,
which tool is missing here?
Best,
Majdoleen
Hi Majdoleen,
How about using the DuplicateRemover?
Takashi
Thank you Takashi, but please could you explain more in details where I have to use it and what it must contains? I am new in FME.
Best,
Majdoleen
yes it is working perfect.
Thank you Takashi, really appreciate.
Best,
Majdoleen