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

help required identifying the value in between the numbers

shankar12
8 - Asteroid

I have 2 tables with the actual and estimated
table 1 contains the actual and 2 contains the estimated.If actual-a is where ever falling between actual-a of table 2 needs to pick the estimated and pasted in the result as shown.

 

 

Table A
product in kgsActual-aActual-BActual-C
4356615.60%0.60%0.00%
4243214.30%0.80%0.00%
7357612.00%2.10%0.00%
6334015.20%1.70%0.00%
4260017.80%0.60%8.00%
5998011.00%0.90%4.00%
4633016.20%7.80%0.00%
4530019.20%3.20%0.00%
9838015.70%11.70%15.00%
1912024.00%0.60%0.00%

 

 

Table B
 fromtoEstimated
Actual-a014Ok
Actual-a14.01161.5
Actual-a16.01181.6
Actual-a18.01221.7
Actual-a22.01999999999991.8
Actual-B01ok
Actual-B1.0151
Actual-B5.01999999999992
Actual-C03ok
Actual-C3.01999999999991

 

 

result
CountActual-aActual-BActual-CEst-aEst-BEst-C
4356615.60%0.60%0.00%1.50%okok
4243214.30%0.80%0.00%1.50%okok
7357612.00%2.10%0.00%ok1.00%ok
6334015.20%1.70%0.00%1.50%1.00%ok
4260017.80%0.60%8.00%1.60%ok1.00%
5998011.00%0.90%4.00%okok1.00%
4633016.20%7.80%0.00%1.60%2.00%ok
4530019.20%3.20%0.00%1.70%1.00%ok
9838015.70%11.70%15.00%1.50%2.00%1.00%
1912024.00%0.60%0.00%1.80%okok

 

Example :product in KG-line item 98380,Actual-a in table a is 15.70 which falls between 14.01 and 16 and estimated for that is 1.5 which shows in th result. Same way Actual-b contains for the same 98380 is 11.70 and actual-b form table b falls between 5.01 to infinity so its estimated is 2 reflecting result .same way for Actual c  result from table b estimated will be 1

tried when concatenated and applied filter instead of showing same count as A i.e 10 result showing less records.

Thanks for the help in advance.

4 REPLIES 4
cmcclellan
13 - Pulsar

There's a lot of ways to do this, I prefer this way.

 

Please note that I've changed the percentage values into decimals.  I'm assuming that you will use something to display the data and that will format it to a proper percentage.  Because of that, using OK is not an option, so I've used 0% instead.

ponraj
13 - Pulsar

I created a macro to solve your case.  Hope this helps. 

 

WorkflowWorkflowMacro workflowMacro workflowResultsResults

shankar12
8 - Asteroid

Hi Ponraj,

 

can you please re-upload the macro, unable to view So please post only macro once again.

Thanks a lot for the support.

 

regards

Shankar

ponraj
13 - Pulsar

Here is the macro. 

Labels