Skip to main content
Solved

How do I multiply some string attribute values based on another number value ?

  • July 19, 2022
  • 4 replies
  • 62 views

Forum|alt.badge.img+1

I need something like 3*bottle = bottle;bottle;bollte.

First table is what I have and second what I need.

 

Unbenannt

Best answer by danilo_fme

Workspace_Agg_ 

Result:

Result_agg 

Workspace attached.

Thanks @gisgis​ for your reply.

 

I inserted the transformer counter before to create a ID for each line.

 

Attached the Workspace.

 

Thanks in Advance,

Danilo

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

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2076 replies
  • July 19, 2022

Hi @gisgis​ 

 

I suggest you to use the transformer Cloner.

 

In the number of copies, you can select the attribute that you have.

 

After, you can use the transformer aggregator.

 

Thanks in Advance,

Danilo


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2076 replies
  • July 19, 2022

Hi @gisgis​ 

 

I suggest you to use the transformer Cloner.

 

In the number of copies, you can select the attribute that you have.

 

After, you can use the transformer aggregator.

 

Thanks in Advance,

Danilo

Workspace_Agg_ 

Result:

Result_agg 

Workspace attached.


Forum|alt.badge.img+1
  • Author
  • 9 replies
  • July 20, 2022

Workspace_Agg_ 

Result:

Result_agg 

Workspace attached.

thanks a lot but there is one small thing, what if I have some more lines with the same value which of course I dont want to group ? I need the same number of output lines as input. I updated my table

 

2


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2076 replies
  • Best Answer
  • July 20, 2022

Workspace_Agg_ 

Result:

Result_agg 

Workspace attached.

Thanks @gisgis​ for your reply.

 

I inserted the transformer counter before to create a ID for each line.

 

Attached the Workspace.

 

Thanks in Advance,

Danilo