Skip to main content
Question

Transpose dynamically (like the Excel command)

  • September 19, 2018
  • 1 reply
  • 16 views

peteralstorp
Contributor
Forum|alt.badge.img+7

Hi. Me and my collegues have encountered this problem many times but we still haven't found an adequate solution. Please help! This is actually exactly what the Excel command Transpose does (when pasting copied data).

I want this data

to be transposed to this data

And if there a more ELEMENTS (after Zn) it should dynamically be included... We have looked at all the transpose posts here but we haven't found a good answer. ELEMENT, As, Ba and so on should be turned into attribute names for further use in the script.

Any help will be gratefully accepted.

Peter et al

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.

1 reply

Forum|alt.badge.img+2
  • 719 replies
  • September 19, 2018

Hi @peteralstorp,

If the following article does not help you: https://knowledge.safe.com/articles/1315/advanced-manipulation-of-excel-tables-using-attrib.html

I think the best option would be to explore the Custom transformer AttributeTransposer available on the FME Hub: https://hub.safe.com/transformers/attributetransposer