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
  • 29 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.

 

 

1 reply

Forum|alt.badge.img+2
  • 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)


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