Hello Everyone,
I have a data table and i want to find approximate match against that table,
I want below result, if quantity is less then their maximum range suppose 5000 is less then their 9,999 then result should be like below table.
Looking forward for your kind response in this regard,
Best Regard,
Kamran Noor
I have a data table and i want to find approximate match against that table,
CATEGORY | DENIM | DENIM | NON_DENIM | NON_DENIM |
RANGE | NORMAL WASH | HEAVY WASH | WASH | DYE |
999 | 8.00% | 12.00% | 8.00% | 12.00% |
2,999 | 6.00% | 8.00% | 6.00% | 8.00% |
4,999 | 4.00% | 6.00% | 4.00% | 6.00% |
9,999 | 3.00% | 4.50% | 3.00% | 4.50% |
14,999 | 2.50% | 4.00% | 2.50% | 4.00% |
29,999 | 2.00% | 3.50% | 2.00% | 3.50% |
49,999 | 1.50% | 3.00% | 1.50% | 3.00% |
100,000 | 1.00% | 2.50% | 1.00% | 2.50% |
200,000 | 0.50% | 2.00% | 0.50% | 2.00% |
1,000,000 | 0.50% | 2.00% | 0.50% | 2.00% |
I want below result, if quantity is less then their maximum range suppose 5000 is less then their 9,999 then result should be like below table.
QTY | TYPES | WASH_CAT | RESULT REQUIRED |
5000 | NON_DENIM | WASH | 3.00% |
Looking forward for your kind response in this regard,
Best Regard,
Kamran Noor