Skip to main content
Question

The equivalent tool to “Pivot Table” of ArcGIS in FME,


Forum|alt.badge.img

The equivalent tool to “pivot table” of ArcGIS in FME,

 

 

I couldn’t figure out which tool is equivalent to “pivot table” of ArcGIS in FME. I have a layer and I want to rearrange the attribute table in a specific way

 

The following picture shows my need

 

 

when i use the pivot table tool the table is look like this

 

 

 

 

Thanks in advance

 

Best

10 replies

takashi
Influencer
  • June 29, 2015
deja vu. (https://knowledge.safe.com/CommunityAnswers?id=906a0000000dBuLAAU)

 

 

Change the attribute name "Percentage" to the VALUE of "ABC"; aggregate features grouping by "Name"; expose the new attribute names.

 

 

 

Alternatively, the AttributeCreator can be used instead of the BulkAttributeRenamer.

 

 

 

Finally remove unnecessary attributes with the AttributeRemover.

 

 

Takashi

Forum|alt.badge.img
  • Author
  • June 29, 2015
Thanks  Takashi,

 

 

but is there any method to let the FME create new fields with new names based on the entries of a colum in attribute table

 

 

 

 

 

to be like this

 

 

 

 

best

takashi
Influencer
  • June 29, 2015
The same. Just remove the Aggregator, and add a NullAttributeMapper after the AttributeExposer to assign 0 to missing attributes.

david_r
Evangelist
  • June 29, 2015
Hi

 

 

just an untested idea, but is it possible that the AttributePivoter could be helpful here?

 

 

David

takashi
Influencer
  • June 29, 2015
I've never used the AttributePivoter. Now tried ... then it worked :)

 

 


takashi
Influencer
  • June 30, 2015
yup, the AttributePivoter is a little bit tricky. Hope this works as expected.

 


Forum|alt.badge.img
  • Author
  • June 30, 2015
Thanks a lot Takashi it works fine 

Forum|alt.badge.img
  • October 7, 2019
takashi wrote:
yup, the AttributePivoter is a little bit tricky. Hope this works as expected.

 

@takashi thanks for the answer! I have the same problem.

How can I keep the selected attributes which I have got after AttributePivoter?

I don't know the names in advance it's a dynamic list of attributes.


salvaleonrp
Enthusiast
Forum|alt.badge.img+15
  • Enthusiast
  • January 21, 2020

Is there an alternative to AttributePivoter? I have a table that I needed to transpose and after the pivot it has 500+ attributes to expose. Occasionally, the schema of the table has to be changed and the attributes I need to expose are now changed, So now I have to import the updates into my work bench.


jovitaatsafe
Safer
Forum|alt.badge.img+11
salvaleonrp wrote:

Is there an alternative to AttributePivoter? I have a table that I needed to transpose and after the pivot it has 500+ attributes to expose. Occasionally, the schema of the table has to be changed and the attributes I need to expose are now changed, So now I have to import the updates into my work bench.

Hi @salvaleonrp,

 

This Q&A thread appears to be from quite a few years ago, would you be open to posting a new question for better visibility? It's easy to overlook new comments on an old post and at a glance this one looks like it's already solved.

In the meantime have you already taken a look at our Pivot Tables and FME article and Manipulation of Tabular Data? Both contain examples of the transformer that may hopefully be helpful. Thanks!


Reply


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