Skip to main content
Solved

How to duplicate observations to assign group?


antoine.prince
Contributor
Forum|alt.badge.img+4

Hi everyone,

 

I am looking for the right transformer to do a simple table manipulation here. So I have T1 (a table with multiple columns) and T2 (a table with a single column representing groups). I would like to duplicate T1 n number of times (n = number of groups in T2) where each row in T1 would be copied to be represented in each group to give T3 as a result.

 

Thanks in advance!

Explanation_capture

Best answer by dustin

The workflow in this screenshot should get you what you want.imageimage

View original
Did this help you find an answer to your question?

3 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • November 2, 2023

The workflow in this screenshot should get you what you want.imageimage


antoine.prince
Contributor
Forum|alt.badge.img+4

Wow great solution! I kinda hope there would be a single transformer to do that, but your solution works like a charm and is quite simple. I was missing that 'Cloner' transformer.

Thanks!


geomancer
Evangelist
Forum|alt.badge.img+51
  • Evangelist
  • November 3, 2023

This workspace gives the same results in an easier way.

image


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