Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Using two inputs in a formula tool - Help!

$
0
0

Hopefully someone on here can help me.

 

I have two files. One of which contains numerical data that needs to be assessed against certain limits. The other contains values that need to be added to the data and limits that the data needs to be assessed against. These files are in different formats and I do NOT want them to be joined or combined in any way, they need to be separate files. I have run them through Alteryx to clean up values, add and remove columns ect.

 

Originally I thought you could simply use the formula tool to reference another file or sheet like Excel can easily do but sadly have not found a way to do this. I've tried using a batch macro but that just joins the two sheets together which is not what I want. To demonstrate what I'm trying to achieve more clearly...

 

e.g. We have a value of 3.567 in spreadsheet 1. We need to add values of 0.34 and 0.01 to the data, from spreadsheet 2, to get 3.917 and compare that to a limit of 4.0. The result will then be a pass.

 

An added complication is that the values to add and the limits to assess against depend on 3 other fields, common to both files. One to identify the model, and the other two to identify the type of limits. Essentially the formula will be....

 

If field 1 in spreadsheet 1 = field 1 in spreadsheet 2 AND
if field 2 in spreadsheet 1 = field 2 in spreadsheet 2 AND
if field 3 in spreadsheet 1 = field 3 in spreadsheet 2 THEN
add value X and value Y from spreadsheet 2 to value Z in spreadsheet 1 AND IF
new value Z is less than limit X from spreadsheet 2 THEN enter "Pass" in field "Pass/Fail/Provisional" ELSE IF

new value Z is more than limit X from spreadsheet 2 THEN enter "Fail" in field "Pass/Fail/Provisional" END IF

 

Is there any way to do this in Alteryx or should I take this part of my task externally? E.g. excel or another tool.

 

These files will later be put into a database on a website so I'm wondering if it would be better to do this in java or some other coding when it is part of said website.


Viewing all articles
Browse latest Browse all 4999

Trending Articles