Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop 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
17 - Castor

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