Early bird tickets for Inspire 2023 are now available! Discounted pricing closes on January 31st. Save your spot!

Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer and Intelligence Suite.

Comparing Values when Imbedded newlines are present

Masond3
8 - Asteroid

Hi Team, 


I need your help.

 

I am trying to  compare the  "BillingStreet" Vs "Mailing Street". The problem i am encountering is around  "Imbedded newlines". 

When trying to do the comparison on these records the compare is returning "False"

 

Example 

BillingStreetMailingStreet
9th Floor, Nirmal Building
Nariman Point
9th Floor, Nirmal Building,
Nariman Point

 

 

Compare  Formula : IF [BillingStreet] = [MailingStreet] then "True" Else "False" Endif

 

Current outcome 

BillingStreetMailingStreetStreetCompare
9th Floor, Nirmal Building
Nariman Point
9th Floor, Nirmal Building,
Nariman Point
FALSE

 

Expected outcome 

BillingStreetMailingStreetStreetCompare
9th Floor, Nirmal Building
Nariman Point
9th Floor, Nirmal Building,
Nariman Point
True

 

Looking forward to your response 

Regards

Masond3

1 REPLY 1
DataNath
16 - Nebula

Have you tried playing around with the data cleanse tool? Might be your best option to standardise both fields ready for comparison - Particularly the Tabs, Line Breaks and Duplicate Whitespace option here:

 

DataNath_0-1660144120222.pngDataNath_1-1660144130570.png

DataNath_2-1660144148559.png

 

Labels