Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multiple rec to show differences with different column

jillv
7 - Meteor

Hello

 

a little variation from Re: 4 way reconciliation - Alteryx Community....

 

I have 4 sources but they do not have the same set of columns. But I still need to compare and spit the differences for the similar columns.

 

Example:

Source1

SEC IDCOUNTRYCURRENCYRATINGTYPE
sec0001USUSDAFI
sec0002AUAUDBEQ
sec0003PHPHPCEQ
sec0004MYMYRDEQ
sec0005USUSDEEQ
sec0006HKHKDFEQ
sec0007JPJPYGEQ
sec0008GB HFI
sec0009USUSDIEQ
sec0010USUSDJFI

 

 

Source 2

SEC IDCOUNTRYCURRENCYRATING
sec0001USUSDA
sec0002AUAUDB
sec0003PHPHPC
sec0004MYMYRD
sec0005USUSDE
sec0006HKHKDF
sec0007JPJPYG
sec0008GBGBPH
sec0009USUSDI
sec0010USUSDJ

 

Source 3

SEC IDCOUNTRYCURRENCYTYPERATINGNAME
sec0001USUSDEQASEC1
sec0002AUAUDEQBSEC2
sec0003PHPHPEQCSEC3
sec0004MYMYREQDSEC4
sec0005USUSDEQESEC5
sec0006CNHKDCSHFSEC6
sec0007JPJPYEQGSEC7
sec0008GBGBPFIHSEC8
sec0009USUSDEQISEC9_TEST
sec0010USUSDFIKSEC10

 

Source 4

SEC IDTYPEEXCHCURRENCYNAME
sec0001EQXNYSUSDSEC1
sec0002EQXASXAUDSEC2
sec0003EQXPHSPHPSEC3
sec0004EQXKLSMYRSEC4
sec0005EQXNASUSDSEC5
sec0006EQXHKGHKDSEC6
sec0007EQXTKSJPYSEC7
sec0008FIXLONGBPSEC8
sec0009EQXNYSUSDSEC9
sec0010FIXNASGBPSEC10

 

So if I am going to compare my columns per sources, not all are common, some may be available to one source but not in the other:

SOURCE1SOURCE2SOURCE3SOURCE4
SEC IDSEC IDSEC IDSEC ID
COUNTRYCOUNTRYCOUNTRY 
CURRENCYCURRENCYCURRENCYCURRENCY
RATINGRATINGRATING 
TYPE TYPETYPE
   EXCH
  NAMENAME

 

Here is the sample results I am expecting. 

---It should only spit out the differences when it is comparable. 

---If there is no data because it is completely not in that particular source, it should not break. (e.g. Country which is available in Source 1, 2, and 3 only, if the values all matched on these 3 sources, then it should not be in the results even though there is no data in Source 4. But if there's at least one discrepancy between Source 1,2 and 3, then it should appear as a break;;; OR another example is NAME where it is only available in Source 3 and 4, if both sources matched even there is no data in Source 1 and 2, they should not appear in the results, but if there is a break between Source 3 and 4 sources, then it should appear as a break...)

---If the data is null but the sources are comparable, it should appear in the results as a break (e.g. Currency is available in Source1,2,3,4, but the Currency is null in Source1, it should show in the differences results)

---if the data is only available in one Source (e.g. EXCH in Source4), ignore and should not appear in the differences results.

 

SEC IDFIELDSOURCE1SOURCE2SOURCE 3SOURCE 4
sec0001TYPEFI EQEQ
sec0006COUNTRYHKHKCN 
sec0008CURRENCY GBPGBPGBP
sec0009NAME  SEC9_TESTSEC9
sec0010CURRENCYUSDUSDUSDGBP
sec0010RATINGJJK 

 

Any help will be appreciated! Thank you!

 

3 REPLIES 3
ArtApa
Alteryx
Alteryx

Hi @jillv - Here is a possible solution:

ArtApa_0-1673314813898.png

 

jillv
7 - Meteor

hi @ArtApa , thanks for this, almost exactly what I need! I really appreciate it!

 

There's just one thing though, for some datapoints that are comparable (meaning there are two or more sources to be compared) but is null (because it is missing data), how can we include it in the results?

 

The results in your workflow is exactly what I am expecting however I think for this sample below it appeared in the list because there is a white space. But if I remove the white space and make it null, this break disappears. 

Is there a way to still show this break when it is null and not a white space? 

jillv_0-1673368893744.png

Thank you so much! 

ArtApa
Alteryx
Alteryx

Hi @jillv - Sure:

ArtApa_0-1673381410904.png

 

Labels
Top Solution Authors