Skip to main content
Solved

FME Desktop 2022.1 Build 22618: How to perform the “AttributePivotor”?

  • July 26, 2022
  • 5 replies
  • 74 views

jamal
Forum|alt.badge.img+5

FME Desktop 2022.1 Build 22618: How to perform the “AttributePivotor”?

 

I couldn’t figure out how to apply the “AttributePivotor” in order to derive the “R” table from “Q” table as per the screenshot.

 

The data is attached

 

 

Clip_926 

Clip_927 

Clip_928 

 

 

Best answer by caracadrian

@jamal​ the data you attached is different from your example. I was able to recreate your Q table via Clipper and AttributeManager...

You set AttributePivoter with Group Rows By Name, Group Columns By Area_ABC_English (Type) and Attribute To Analyze: Percent. The rest doesn't really matter.

After that you expose Area A, Area B and Area C attributes via AttibuteExposer or AttributeManager.

I have attached a template workspace with the desired settings.

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.

5 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • Best Answer
  • July 27, 2022

@jamal​ the data you attached is different from your example. I was able to recreate your Q table via Clipper and AttributeManager...

You set AttributePivoter with Group Rows By Name, Group Columns By Area_ABC_English (Type) and Attribute To Analyze: Percent. The rest doesn't really matter.

After that you expose Area A, Area B and Area C attributes via AttibuteExposer or AttributeManager.

I have attached a template workspace with the desired settings.


jamal
Forum|alt.badge.img+5
  • Author
  • 342 replies
  • July 27, 2022

Thank you caracadrian for the help.

 

Sorry for attaching the wrong data. I managed to re-attach the correct one (S.gdb)

 

The “AttributePivotor” is performed (as per the screenshot) but the output appears not to be as expected.

 

What could be the issue here?

 

Clip_935 

Clip_936 

Clip_937 

 

 

 

 

 

 

 

 


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • July 27, 2022

Thank you caracadrian for the help.

 

Sorry for attaching the wrong data. I managed to re-attach the correct one (S.gdb)

 

The “AttributePivotor” is performed (as per the screenshot) but the output appears not to be as expected.

 

What could be the issue here?

 

Clip_935 

Clip_936 

Clip_937 

 

 

 

 

 

 

 

 

You need to expose the newly created attributes via the AttributeExposer transformer.


jamal
Forum|alt.badge.img+5
  • Author
  • 342 replies
  • July 27, 2022

But why the output of “AttributePivotor” is just nothing? I’m expecting that this transformer will be doing the transpose in one go.

 

What is the benefit of using the AttributeExposer transformer if the output of the “AttributePivotor” is just nothing?


jamal
Forum|alt.badge.img+5
  • Author
  • 342 replies
  • July 28, 2022

It works fine. Thank you.

 

Is there any transformer that can perform the pivot in one go?

 

Clip_959Clip_960 

Clip_961Clip_962