Question

Replicate value for all records

  • 4 January 2019
  • 3 replies
  • 15 views

Badge +6

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

Userlevel 2
Badge +12

It should work with this approach:

Badge +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.

Badge +6

It should work with this approach:

@erik_jan,

Your suggest definitely helped me a lot.

Thank´s

Reply