Skip to main content
Question

Columns to Rows in FME2019

  • December 4, 2019
  • 2 replies
  • 92 views

Forum|alt.badge.img

I know this has been asked many times, but i cannot get it to work.

 

My data is:

 

ObjectCategoryNumApple8091Apple

 

81122Apple8100Banana80913Banana81014Banana81155

 

And i want to turn it into

 

Object809810811Apple1022Banana131455

 

I've tried to do the method i've read on the forums using attributecreator, however, its not creating multiple columns based on the column names.

ie, in AttributeCreator:

NewAttribute: @Value(Category)

AttributeValue: @Value(Num)

doesnt do anything.

 

I am using FME 2019.

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • December 4, 2019

Have you exposed the column names after creation?


oscard
Influencer
Forum|alt.badge.img+22
  • Influencer
  • 344 replies
  • December 4, 2019

There is a more complex way that could work following these steps:

1 - ListBuilder:

GroupBy: Object

Add to List: Selected Attributes

Selected attributes: Category, Num

 

2 - ListKeyValuePairExtractor:

Attribute Name List: _yourList{0}.Category

Attribute Value List: _yourList{0}.Num

 

3 - AttributeExposer