Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

How to reference another table and use the range of the referenced table in the analysis

riku_okawa
7 - Meteor

As shown in Fig. 1 below, I have already given a pre value, and I want to calculate the post value by using Alteryx.
To get the post value, I want to use a table like the one in Figure 2, and use the value of the column when the "pre value" is greater than "min" and less than "max" for each column in Figure 2 as the "post value".
However, I don't know how to do this calculation in alteryx. How can I do this kind of calculation?

 

Figure1

pre valuepost value
5,000 
900 
300 
3,890 
598 
199 
800 
1,600 
1,200 

 

Figure2

MinMaxvalue
19999
100100100
101108108
109118118
119128128
129138138
139148148
149158158
4 REPLIES 4
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @riku_okawa,

 

You can do this kind of calculation by appending the second table to the first and determining which bounds fit the condition. I've used a summarise tool also to check how many bounds each pre-value fits the criteria of (should always be one)

 

Jonathan-Sherman_0-1617959562130.png

 

I've attached my workflow for you to download if needed.

 

Kind regards,

Jonathan

 

danilang
19 - Altair
19 - Altair

Hi @riku_okawa 

 

Another way to do this is to generate a row for each of the values in your ranges and join this table to the Pre values in your input

 

danilang_1-1617971645454.png

 

danilang_2-1617971684742.png

 

Dan

 

 

riku_okawa
7 - Meteor

Thank you very much, I didn't know much about the Generate Rows feature, so it is very helpful!!

riku_okawa
7 - Meteor

Thank you. I followed the method you showed me and am able to do the calculation successfully. Thank you for attaching the workflow as well.

Labels