Skip to main content
Solved

Join 2 columns


Hello All,

I have 2 columns that I need to merge into one. Columns are different attributes of a single feature class.

If Address 1 has populated field, then they are accepted. If Address 1 is null, then Address 2 is checked and information from that column will be copied to Address 1. If both columns are populated, Address 1 is accepted.

Any ideas of how I would do that? Any help would be appreciated. Thanks

Best answer by ebygomm

An attributecreator with a conditional value can be used here. If Address1 has a value do nothing, otherwise make Address1 equal Address2

View original
Did this help you find an answer to your question?
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.

6 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • January 5, 2017

An attributecreator with a conditional value can be used here. If Address1 has a value do nothing, otherwise make Address1 equal Address2


ebygomm wrote:

An attributecreator with a conditional value can be used here. If Address1 has a value do nothing, otherwise make Address1 equal Address2

Thanks for that suggestion. Can you elaborate a bit more please. I cannot find much help on using AttributeCreator with conditions

 


Forum|alt.badge.img+7

Hi @fariyafarhad

 

You can use an AttributeCreator and create a new attribute with the name 'Address1'. This new attribute will overwrite the old one. As value, you choose the option 'Conditional Value' which opens a new window in which you can enter a Test condition and an Output value.

TEST: If Address1 has a value, OUTPUT: Address1

ELSE OUTPUT: Address2

If something is not clear, I will be happy to help!

Good luck!


ebygomm wrote:

An attributecreator with a conditional value can be used here. If Address1 has a value do nothing, otherwise make Address1 equal Address2

Thanks egomm, I just learned the use of conditions within attributecreator :D

 

 


jeroenstiers wrote:

Hi @fariyafarhad

 

You can use an AttributeCreator and create a new attribute with the name 'Address1'. This new attribute will overwrite the old one. As value, you choose the option 'Conditional Value' which opens a new window in which you can enter a Test condition and an Output value.

TEST: If Address1 has a value, OUTPUT: Address1

ELSE OUTPUT: Address2

If something is not clear, I will be happy to help!

Good luck!

Thank you for the answer @jeroenstiers!

 

 


david_r
Celebrity
  • January 5, 2017

Another option is to use the NullAttributeMapper, I find it slightly easier to read when reopening a workspace later on as you don't have to click through 2 dialogs to see what's going on:


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