Skip to main content
Solved

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


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

danilo_fme wrote:

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

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

4 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • 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
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • July 19, 2022
danilo_fme wrote:

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
  • July 20, 2022
danilo_fme wrote:

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
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • Best Answer
  • July 20, 2022
danilo_fme wrote:

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


Reply


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