Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Comparing 2 data sets

Jo_siem_E
5 - Atom

Hello everyone,
I am still quite new to alteryx and have been quite satisfied with my progress so far. I am currently working on a workflow which should compare and combine two data sets, but unfortunately I have been almost frustratingly unsuccessful with it the last few days... The workflow I currently have attached is rubbish but the input represents the data I have to work with quite well. The data is collected once per quarter (with different changes) and compared to the previous quarter's results. In the example, the data from Q3 would actually also be regarded as destination data (the comparison for Q4 could change this again, however). If someone could give me a nudge in the right direction I would be very grateful!
Kind regards

4 REPLIES 4
Wesley Mendonca
8 - Asteroid

Can you provide more context for your question? It would be nice to see some sample as output.

Jo_siem_E
5 - Atom

Thank you for your question. To give some context: We receive hardware and software data (sometimes more or less complete) from PCs and servers. Based on the reprocessed data records, we generate reports (already working) that make recommendations for updates (also for software/hardware).


My objective would be for my output to be something like this. Start combined and compared with Q1:

 

RoleName Order_nrserial_nrSoftware_versionHostnameIP1IP2MAC 1MAC 2id customer
Server-ADELL PowerEdge T330 S-7589DL556699 Serv-A10.100.125.12510.100.125.1000xddffssaa1122 ServA-17b16
 OS win-xpwin-1001  Serv-A    ServA-17b16
 RAM 8GBAttribut_RAM_8GB  Serv-A    ServA-17b16
 IMAGEIM-1005 10.004.00Serv-A    ServA-17b16
 Patch 17.005.10swp_17.005.10  Serv-A    ServA-17b16
 Patch 17.005.11swp_17.005.11  Serv-A    ServA-17b16
 Patch 17.005.12swp_17.005.12  Serv-A    ServA-17b16
 Patch 17.005.13swp_17.005.13  Serv-A    ServA-17b16
 Patch 17.005.15swp_17.005.15  Serv-A    ServA-17b16
 Patch 17.005.16swp_17.005.16  Serv-A    ServA-17b16
 Patch 17.005.17swp_17.005.17  Serv-A    ServA-17b16
 Patch 17.005.18swp_17.005.18  Serv-A    ServA-17b16
 Sec Patch S25.08.00 for R6 SP4secp_S25.08.00  Serv-A    ServA-17b16
 User-Software US-4007 06.04.07.23Serv-A    ServA-17b16


c&c_Q1 combined and compared with Q2:

 

RoleName Order_nrserial_nrSoftware_versionHostnameIP1IP2MAC 1MAC 2id customer
Server-ADELL PowerEdge T330 S-7589DL556699 Serv-A0110.100.125.12510.100.125.2150xddffssaa11220xddffssaa1123ServA-17b16
 OS win-7win-1001  Serv-A01    ServA-17b16
 RAM 8GBAttribut_RAM_8GB  Serv-A01    ServA-17b16
 IMAGEIM-1005 11.002.01Serv-A01    ServA-17b16
 User-Software US-4007 07.01.03.03Serv-A01    ServA-17b16
 Patch 18.005.10swp_18.001.10  Serv-A01    ServA-17b16
 Patch 18.005.11swp_18.001.11  Serv-A01    ServA-17b16
 Sec Patch S26.01.00 for R7 SP1secp_S26.01.00  Serv-A01    ServA-17b16



c&c_Q2 combined and compared with Q3:

RoleName Order_nrserial_nrSoftware_versionHostnameIP1IP2MAC 1MAC 2id customer
Server-ADELL PowerEdge T350 S-7593DL787899 Serv-A0110.100.125.12510.100.125.2150xddffsfb121a7 ServA-17b17
 OS win-7win-1001  Serv-A01    ServA-17b17
 RAM unknownAttribut_RAM_unk  Serv-A01    ServA-17b17
 IMAGEIM-1005 11.002.03Serv-A01    ServA-17b17
 User-Software US-4007 07.01.03.03Serv-A01    ServA-17b17
 Patch 18.005.10swp_18.001.10  Serv-A01    ServA-17b17
 Patch 18.005.11swp_18.001.11  Serv-A01    ServA-17b17
 Patch 18.005.12swp_18.001.12  Serv-A01    ServA-17b17
 Patch 18.005.13swp_18.001.13  Serv-A01    ServA-17b17
 Patch 18.005.14swp_18.001.14  Serv-A01    ServA-17b17
 Patch 18.005.15swp_18.001.15  Serv-A01    ServA-17b17
 Sec Patch S26.01.00 for R7 SP1secp_S26.01.00  Serv-A01    ServA-17b17


Hope that makes it a little easier to understand.

A1exW
6 - Meteoroid

Seems like the Join tool and Union tool would help. You will first need to determine the join keys for your datasets and configure the Join tool. After the Join tool, use a Union tool to combine the data from all three output anchors of the Join tool. 

Jo_siem_E
5 - Atom

Yes, it does indeed seem to be the way to go. I'll get back to you when I've found the time to finish it.

Labels