Skip to main content
Solved

Fill columns based on conditional values?

  • October 1, 2020
  • 4 replies
  • 71 views

ileung_cnw
Contributor
Forum|alt.badge.img+3

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

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

jonas_nelson
Enthusiast
Forum|alt.badge.img+25
  • Enthusiast
  • 109 replies
  • 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+12
  • Contributor
  • 65 replies
  • 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+3
  • Author
  • Contributor
  • 8 replies
  • 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

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+3
  • Author
  • Contributor
  • 8 replies
  • 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.

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