Skip to main content
Solved

Fill columns based on conditional values?


ileung_cnw
Contributor
Forum|alt.badge.img+2

Hello FME Community,

 

First time posting here! Hope to explain my problem better with screenshots of my current situation and what I hope to achieve.

fme_start

I have 3 empty columns I like to them to be filled with values from Status_Percentage.sum based on the feature's status (e.g. Built, Intended, Interim).

 

The result should look like this:

excel_screenshot3

The image shows values from Status_Percentage.sum filled to each empty columns based on the feature's status.

 

I've looked into AttributeManager and conditional values but not getting what I want. I've been advised to look at VariableSetter and VariableRetriever but am not familiar with the transformers.

 

Any help is appreciated! Thanks in advance.

Best answer by samisnunu

I created your mock data to test how that could be done in a simpler and uncomplicated way

simply use the FeatureMerger with the Join on parameter set to: 1-1FME_populate_attributes

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

4 replies

jonas_nelson
Enthusiast
Forum|alt.badge.img+19
  • Enthusiast
  • October 2, 2020

Is this Excel data? There was a recent webinar on handling Excel data, check it out (Go to the Knowledge Base) if you haven't already. You might find a solution there.


samisnunu
Contributor
Forum|alt.badge.img+10
  • Contributor
  • Best Answer
  • October 2, 2020

I created your mock data to test how that could be done in a simpler and uncomplicated way

simply use the FeatureMerger with the Join on parameter set to: 1-1FME_populate_attributes


ileung_cnw
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • October 2, 2020
samisnunu wrote:

I created your mock data to test how that could be done in a simpler and uncomplicated way

simply use the FeatureMerger with the Join on parameter set to: 1-1FME_populate_attributes

Thanks for looking into this! This solved my problem! I was looking at using FeatureMerger but couldn't figure it out until now by using AttributeFilters and enabling "Process Duplicate Suppliers". 😀


ileung_cnw
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • October 2, 2020
jonas_nelson wrote:

Is this Excel data? There was a recent webinar on handling Excel data, check it out (Go to the Knowledge Base) if you haven't already. You might find a solution there.

No this is a table from a file gdb. Thanks for the info!


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