Skip to main content
Solved

How to sum up values separated by a comma?


grayson
Contributor
Forum|alt.badge.img+3

I'm an FME newbi. Feel like it's something very basic but couldn't come up with a solution on my own.

What I want to achieve is to get 80% of the value from column B to column A, but some of the features have multiple values separated by a comma, soo they come out as NULL.

I went through previously asked questions but couldn't find anything. Appreciate any help!

 

Zrzut ekranu 2023-05-02 172731

Best answer by dustin

Split the attribute at the comma with an AttributeSplitter, which will put the values into a list. Then use a ListSummer to add up the values from the list.image

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

2 replies

dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • Best Answer
  • May 2, 2023

Split the attribute at the comma with an AttributeSplitter, which will put the values into a list. Then use a ListSummer to add up the values from the list.image


grayson
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • May 3, 2023

well, it helped! Thanks a lot!

 

I tried to use Attribute splitter before, when working on something different, but without ListSummer. It didn't make any sense back then. Thanks again!


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