Alteryx Designer Desktop Discussions

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

Join excel files, create new calculated column

JJH
7 - Meteor

I have 2 excel files.

 

1st file: static data. contains a list of items with cash values in multiple currencies

2nd file: connected to database. Pulls live FX rate of multiple FOREX currency pairs

 

I want to combine the files to create a new column called 'CAD Equivalent' for all of the cash value rows in the 1st file.

 

Any suggestions on how to introduce the 2nd file to be able to compute the CAD equivalent value?

 

Table 1 Example

Item #CurrencyValue
1EUR100
2CAD500
3USD2
4CHF5

 

Table 2 Example

Currency FromCurrency ToFX Rate
CADEUR1.22
CADUSD1.33
CHFUSD1.01

 

Desired Table

Item #CurrencyValueCAD Value
1EUR100122
2CAD500500
4 REPLIES 4
AbhilashR
15 - Aurora
15 - Aurora

Hi @JJH, which column from Table 2 should be used to join Table 1? Currency From or Currency To column? 

JJH
7 - Meteor

The reason I want to join table 1 &  2 is because I want to be able to create a column that shows the CAD equivalent value using the below formula:

 

New column name = CAD Equivalent

Formula

IF Currency = "CAD", [CAD Equivalent] = [Value]

ELSEIF Currency! = "CAD", [CAD Equivalent] = [Value] * [FX Rate]

ENDIF

 

How can I join the 2 tables to create the 'FX Rate' column that I can use to compute [CAD Equivalent]?

Item #CurrencyValueFX Rate (pulled from 2nd table)CAD Equivalent
1EUR1001.22 
2CAD5001 
3USD2xxx 
4CHF5xxx 
AbhilashR
15 - Aurora
15 - Aurora

Does the attached solution work?

AbhilashR_0-1588304569476.png

 

JJH
7 - Meteor

Yes, this is exactly what I trying to accomplish. Thank you!

Labels