Skip to main content
Question

Replicate value for all records


mr_fme
Enthusiast
Forum|alt.badge.img+9

Hi,

 

I have some features that contain the especific date, but in others features from the same file no have date value...

How I replicate the date for all by fme_basename?

I´m reading many files at once and dates are different for each file.

Thank´s

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • January 4, 2019

It should work with this approach:


Forum|alt.badge.img+2

Hi @mr_fme,

Alternatively you could use Adjacent Attribute Handling in the Attribute Manager to achieve this.

  1. Add an Attribute Manager and Enable Adjacent Feature Attributes. Change the value for Number of Prior Features to 1.
  2. For the Date column select 'Conditional Value' for the Attribute Value. Change the Pass Criteria to AND then set two test clauses:

     

    fme_basename = feature[-1].fme_basename

     

    AND

     

    date Attribute is missing

     

     

    Then for the new attribute value set it to feature[-1].fme_basename.

     

I believe this would also give you the desired result.


mr_fme
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • January 6, 2019
erik_jan wrote:

It should work with this approach:

@erik_jan,

Your suggest definitely helped me a lot.

Thank´s


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