Skip to main content
Question

Is there a transformer that is like Power BI's "pivot column" function or Python pandas' pivot function?

  • December 22, 2020
  • 1 reply
  • 37 views

For the life of me, I cannot find a transformer that does this simple, often-used data transformation. I do NOT want to aggregate the values when I pivot as the AttributePivoter forces me to do, and the AttributeTransposer makes no sense to me at all; I've tried about every combination of options with it with no luck. I have given an example of the transformation I am trying to achieve in the attached picture.

 

If anyone is familiar with Power Query within Power BI, it would be the same as pivoting an attribute column on top of a values column (with no aggregation). Similarly, this could be achieved by the pandas' pivot dataframe function.

 

 

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
  • 1891 replies
  • December 23, 2020

@codyaholmes​  There isn't a straightforward way to take a list of name/value pairs and create a single feature. Something we should look into adding. The attached workspace does the trick, but a little cumbersome.

workspaceI've typed in your example as the source dataset (FME 2020.2)