Solved

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


Badge +1

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

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

 

Unbenannt

icon

Best answer by danilo_fme 20 July 2022, 12:34

View original

4 replies

Userlevel 4
Badge +30

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

Userlevel 4
Badge +30

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.

Badge +1

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

Userlevel 4
Badge +30

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