Start Free Trial

Alteryx Designer Desktop Discussions

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

Another "vLookup" Question

daveyc3000
7 - Meteor

so in my "DATA" file, i have a currency column (column A); any row with "U$", the MV needs to be multiplied by the "Close" rate shown in the "FX" file ( that is, the rate shown in cell I10).

 

probably simple to do, but im a newb

10 REPLIES 10
BRRLL99
11 - Bolide

this is your expected output?

Close RateCurrencyMVcal
1.2727U$3123139747.69
1.2727U$12321567.97
1.2727 120
1.2727 310
1.2727 32120
1.2727 415670
daveyc3000
7 - Meteor

thank you...almost...currency not blank is to left alone (or multiplied by 1 if that makes it easier)

BRRLL99
11 - Bolide
Close RateCurrencyMVcal
1.2727U$3123139747.69
1.2727U$12321567.97
1.27271120
1.27271310
1.2727132120
1.27271415670

 

Next please make sure to input and expected output also

daveyc3000
7 - Meteor

my apologies, im obviously not being clear...under the "cal" column, the rows with blank currency (they should be left blank or ideally replaced with "C$", but if that's too much to ask, leave as blank), the values should be still be 12,31,3212, and 41567 , not 0  ....they are native currency so the numbers should not change

 

 

BRRLL99
11 - Bolide

this is your output requirement?

 

Close RateCurrencyMVcal
1.2727U$3123139747.69
1.2727U$12321567.97
1.2727C$120
1.2727C$310
1.2727C$32120
1.2727C$415670
daveyc3000
7 - Meteor

im back on my desktop...pls see attached what i desire

 

output from F to G is a nice to have (ie "C$" instead of blanks), but not needed

BRRLL99
11 - Bolide

Step: 1

 

For FX file 

Apply filer CLOSE: on F7 column

 

step: 2

 

Select tool to remove unwanted columns

 

step:3

Add formula tool, and create dummy column with 1 in it ( this is created to join both FX file and Data file)

 

For data file

 

Add formula tool and create 3 new columns

1. Dummy : 1

2. remove commas

3. Currency :

 IF IsNull([Currency])
THEN "C$"
ELSE [Currency]
ENDIF

 

After join based on dummy column
Add formula tool

create new column cal

with this formula

if Contains([Currency], "U$")
then [Close Rate] * [MV]
else [MV] *1
endif

prakharalteryx
5 - Atom

Please see the attached workflow for the solution. Kindly note this is for case where we are picking value directly from the cell specified (I10).  

 

 

daveyc3000
7 - Meteor

thanks for the flow, but I need the MV for "U$" currency to multipled by the rate/number shown in the FX file, cell i10 (or alteryx, column F9, record 9)

 

 

Labels
Top Solution Authors