Skip to main content
Solved

Excel Data Help

  • June 16, 2016
  • 3 replies
  • 15 views

Forum|alt.badge.img

Hello All,

I am trying to get rid all data (in the writer) except the first row (Pullin) and last row (Pickup) of each run (Only the Yellow Highlighted Rows). Is there any FMe transformer that can trim data? Please advise. I would appreciate the help.

Best answer by takashi

Hi @gsgoraya, I think you can test these conditions with a Tester (Pass Criteria: One Test (OR)) to determine whether a row should be kept.

  1. The 'Pull In' field in the row has a value.
  2. The 'Drop off' field in the NEXT row is empty (or missing).

It's easy to test the 1st condition. Regarding the 2nd condition, you can retrieve the value of 'Drop off' in the NEXT row with the AttributeCreator using the 'Enable Adjacent Feature Attributes' option (Number of Subsequent features: 1) before testing. e.g.

You can then test whether the '_next_Drop_off' has a value, in the following Tester.

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.

3 replies

takashi
Celebrity
  • Best Answer
  • June 17, 2016

Hi @gsgoraya, I think you can test these conditions with a Tester (Pass Criteria: One Test (OR)) to determine whether a row should be kept.

  1. The 'Pull In' field in the row has a value.
  2. The 'Drop off' field in the NEXT row is empty (or missing).

It's easy to test the 1st condition. Regarding the 2nd condition, you can retrieve the value of 'Drop off' in the NEXT row with the AttributeCreator using the 'Enable Adjacent Feature Attributes' option (Number of Subsequent features: 1) before testing. e.g.

You can then test whether the '_next_Drop_off' has a value, in the following Tester.


Forum|alt.badge.img
  • Author
  • June 17, 2016

Hi @gsgoraya, I think you can test these conditions with a Tester (Pass Criteria: One Test (OR)) to determine whether a row should be kept.

  1. The 'Pull In' field in the row has a value.
  2. The 'Drop off' field in the NEXT row is empty (or missing).

It's easy to test the 1st condition. Regarding the 2nd condition, you can retrieve the value of 'Drop off' in the NEXT row with the AttributeCreator using the 'Enable Adjacent Feature Attributes' option (Number of Subsequent features: 1) before testing. e.g.

You can then test whether the '_next_Drop_off' has a value, in the following Tester.

Hello Takashi,

Thank you for answering. I tried but it does not work for me. Can you please provide detailed instructions if you don't mind. I would appreciate.

Goraya


Forum|alt.badge.img
  • Author
  • June 17, 2016

Thank you Takashi for your help.

Gurpreet