Alteryx Designer Desktop Discussions

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

Comparing prices of different inputs

Travis_Ratliff
8 - Asteroid

Hey all,

 

I have attached a workflow with my two sample inputs.

 

The end result that I would want would look like:

Customer_company_nameContract_service_agreementtransaction_begin_datetransaction_end_datePriceRateMatch
Jacks3997520220701070020220701070030.430.4Match
In-N-Out33085202207051000202207052100200[Null]No Match

 

But for all of the rows. So, what am I trying to do is join the two inputs and then create a new column that checks if there is a match between the price and rate but only for that contract agreement number. For example, if there was a rate of 200 that was NOT agreement 33085 it still would not match. 

 

The end result would be the rows as the transactions and the same columns but with that match column added. 

 

I have unsuccessfully tried multiple ways to do this because it seems relatively easy in my head because I already have this built in excel I just want to automate it.

 

Any help would be appreciated

 

16 REPLIES 16
ShankerV
17 - Castor


Hi @Travis_Ratliff 

 

There is no input file in the alteryx workflow.

Its the local path of your machine, please share the input.

 

Shanker V

Travis_Ratliff
8 - Asteroid

Sorry about that. Here is the data.

braveraj
10 - Fireball

Can you just use a multi-row formula tool and group by contact service agreement?

 

braveraj_0-1668537899616.png

 

ShankerV
17 - Castor

@Travis_Ratliff 

 

Sample file for Transaction please, expected is 2 input files right?

 

Shanker V

Travis_Ratliff
8 - Asteroid

The file has two different sheets in it. One for each

Travis_Ratliff
8 - Asteroid

How would I join the two of them together before that step? 

Mine has two different files which is part of the problem

 

Thanks

ShankerV
17 - Castor

Hi @Travis_Ratliff 

 

Got it, working on the solution. Few minutes, will get back to you.

 

 

Shanker V

braveraj
10 - Fireball

So I'm not sure on the joins but I've tried trimming the date on transaction as a join key. Ultimately it created a product join on just service agreement code, but if you're only looking for where the price and rate are the same by agreement you can filter it down.

 

braveraj_0-1668538999468.png

 

ShankerV
17 - Castor

Hi @Travis_Ratliff 

 

As the two inputs need to be combined with contract service

 

We have 140 records in Contract Product and 17858 records in Transaction, 

Using the join tool, it is trying to figure out each combination with contract service and generating 179,336 records in output. Which is ultimately not correct.

 

Need one more matching criteria, also as you can explain how the data can be concatenated.

 

Many thanks

Shanker V

Labels