Skip to main content
Question

Transform values from an attribute into a list

  • December 17, 2024
  • 2 replies
  • 285 views

willydevera
Contributor
Forum|alt.badge.img+9

Hi,

 

I need help.

 

I have an attribute column X with string values ‘S001’, ‘S002’, ‘S003’, and ‘S004’, all lined up in 1 column with 4 rows corresponding to the string values.

 

I would like the output Y should to be a single row list, having just one column and one row, containing the four values:

Y = (‘S001’, ‘S002’, ‘S003’, ‘S004’)

 

Could you please advise how this could be done in FME Form. Greatly appreciated.

 

Thanks,

 

Willy de Vera

2 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • December 17, 2024

It sounds like the Aggregator transformer would be helpful. It has a Generate List function. It also has the ability to create a concatenation. If you go the concatenation route, you would need to rename ‘X’ to ‘Y’ using an AttributeRenamer after the Aggregator.

 


willydevera
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • December 20, 2024

Thanks ​@dustin it works!