In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Linear interpolation between range values

mark_paul
8 - Asteroid

Hi All,

 

How to compute the Linear interpolation between range of values?

 

Source Table:

IDVAL
1233.13
1244.22
1252.35

 

Lookup Table:

low_valhigh_valpct
22.25110.25
2.53112.2
3.253.5115.25
3.754120
4.254.75125

 

 

 

ID-123 is interpolated between 

2.53112.2
3.253.5115.25

 

Interpolated value= (3.13 - (2.5+3)/2)/((3.25+3.5)/2-(2.5+3)/2) * (115.25-112.2) + 112.2=114.0544

 

 

Target:

IDVALInterpolated_pct
1233.13114.0544
1244.22122.76
1252.35110.952

 

 

Thanks,

Mark

 

1 REPLY 1
RolandSchubert
16 - Nebula
16 - Nebula

Hi @mark_paul ,

 

you can use Append Fields, Filter and Sample to solve the problem:

 

22-04-_2020_16-09-11.png

 

I've attached a sample workflow. Let me know if it works for you.

 

Best,

 

Roland

Labels
Top Solution Authors