Hi ,
I have this scenario :
| UniqID | Date A | Price A | | UniqID | Date B | Price B |
| A | 24-10-2023 | 100 USD | | A | 23-10-2023 | 150 USD |
| A | 21-10-2023 | 50 USD | | A | 22-10-2023 | 100 USD |
| A | 25-10-2023 | 10 USD | | | | |
Two data sets A and B need to be compared .
Based on the date A , solution need to choose the nearest date B and subsequent price B as shown below .
Thanks in advance.
| UniqID | DateA | New Price |
| A | 24-10-2023 | 150 USD |
| A | 21-10-2023 | 100 USD |
| A | 25-10-2023 | 150 USD |