Skip to main content
Question

How to merge multiple records but create a list from one attribute?

  • December 6, 2018
  • 4 replies
  • 207 views

Forum|alt.badge.img

I have 2 records with identical attribute values except for one field (FeatureID). How can I merge the records but create a list from the FeatureID.

 

The result should be highlighted on the attached picture

4 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • December 6, 2018

Hi @mariofederis,

Have you tried using the AttributeCombiner available on the FME Hub? This transformer will allow you to group by InspectionID, combine by FeatureID, and choose the delimiter string.

attributecombiner.fmw


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • December 6, 2018

The Aggregator transformer could do this (Group by InspectionId, Attribute to concatenate FeatureId):


Forum|alt.badge.img
erik_jan wrote:

The Aggregator transformer could do this (Group by InspectionId, Attribute to concatenate FeatureId):

Thanks for the recommendation Erik.

 

On the same note, my workflow requires me to regain those two features later down the road. How do you recommend I explode them from that 1 record?


ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • December 6, 2018
mariofederis wrote:

Thanks for the recommendation Erik.

 

On the same note, my workflow requires me to regain those two features later down the road. How do you recommend I explode them from that 1 record?

If you generate a list in the aggregator with the InspectionID and the Description you'll be able to explode that list to regain the two features.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings