Skip to main content
Solved

How to: Transposing/concatenating problem.

  • January 28, 2022
  • 4 replies
  • 14 views

Can't wrap my head around the following reformatting problem. My data looks like this:

Pointid substance1 substance2 substance3...

1 value

2

3

I have a lot of columns in the original data, almost 200 different substances. I would like to achieve the following structure (below) where Substances attribute contains all values of 200 substance columns and is exploded for each Pointid. So basically every Pointid is replicated for each substance and values column have the value of each substance. I've tried multiple combinations of transformers but without result.

Pointid Substances values

1 Substance1 value

1 Substance2 ...

1 Substance3

2 Substance1

2 Substance2

...

Best answer by nielsgerrits

I think you can solve this with an AttributeExploder.

Attached sample workspace.

AttributeExploderSample

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.

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • January 28, 2022

I think you can solve this with an AttributeExploder.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • January 28, 2022

I think you can solve this with an AttributeExploder.

Attached sample workspace.

AttributeExploderSample


takashi
Celebrity
  • 7843 replies
  • January 28, 2022

Hi @japeki​ , alternatively you can use the ListPolulator to populate all the values of Substance* attributes into a list attribute.

listpopulator-example 


  • Author
  • 3 replies
  • February 15, 2022

Attached sample workspace.

AttributeExploderSample

This seemed to work thank you! I've tried AttributeExploder before but somehow didn't get the same result.