Below is Ledger Table: (Input 1)
| LDate | LCR | LDR |
| 01-01-2022 | 100 | |
| 02-01-2022 | 650 | 750 |
| 03-01-2022 | 200 | 1100 |
| 05-01-2022 | 300 | 1000 |
| 07-01-2022 | 400 | 900 |
| 09-01-2022 | 100 | 800 |
| 11-02-2022 | | 1200 |
| 12-02-2022 | 300 | 1100 |
| 13-02-2022 | | 1000 |
| 14-02-2022 | 900 | 400 |
| 14-02-2022 | 950 | 850 |
| 15-02-2022 | 100 | 1200 |
| 16-02-2022 | 200 | |
| 17-02-2022 | 300 | 1000 |
Below is Statement Table (Input 2):-
| SDate | SDR | SCR |
| 05-01-2022 | 100 | |
| 06-01-2022 | 200 | 1100 |
| 07-01-2022 | 300 | 1000 |
| 07-02-2022 | 400 | 900 |
| 08-02-2022 | 100 | 800 |
| 15-02-2022 | | 1200 |
| 16-02-2022 | 300 | 1100 |
| 17-02-2022 | 800 | 1000 |
| 18-02-2022 | 900 | 400 |
| 15-03-2022 | 100 | 1200 |
| 16-03-2022 | 200 | 1100 |
| 17-03-2022 | 300 | 1000 |
DESIRED OUTPUT 1:
| LDate | LCR | SDate | SDR |
| 01-01-2022 | 100 | 05-01-2022 | 100 |
| 02-01-2022 | 650 | NOT FOUND |
| 03-01-2022 | 200 | 06-01-2022 | 200 |
| 05-01-2022 | 300 | 07-01-2022 | 300 |
| 07-01-2022 | 400 | 07-02-2022 | 400 |
| 09-01-2022 | 100 | 08-02-2022 | 100 |
| 12-02-2022 | 300 | 16-02-2022 | 300 |
| 14-02-2022 | 900 | 18-02-2022 | 900 |
| 14-02-2022 | 950 | NOT FOUND |
| 15-02-2022 | 100 | 15-03-2022 | 100 |
| 16-02-2022 | 200 | 16-03-2022 | 200 |
| 17-02-2022 | 300 | 17-03-2022 | 300 |
DESIRED OUTPUT 2:
| LDate | LDR | SDate | SCR |
| 02-01-2022 | 750 | NOT FOUND |
| 03-01-2022 | 1100 | 06-01-2022 | 1100 |
| 05-01-2022 | 1000 | 07-01-2022 | 1000 |
| 07-01-2022 | 900 | 07-02-2022 | 900 |
| 09-01-2022 | 800 | 08-02-2022 | 800 |
| 11-02-2022 | 1200 | 15-02-2022 | 1200 |
| 12-02-2022 | 1100 | 16-02-2022 | 1100 |
| 13-02-2022 | 1000 | 17-02-2022 | 1000 |
| 14-02-2022 | 400 | 18-02-2022 | 400 |
| 14-02-2022 | 850 | NOT FOUND |
| 15-02-2022 | 1200 | 15-03-2022 | 1200 |
| 17-02-2022 | 1000 | 17-03-2022 | 1000 |
Here I have two Input Tables Ledger and Statement, I want to compare the Ledger table with the statement table to get the ouptut as mentioned above.
OUTPUT1: Compare the Ledger col LCR with Statement Col SDR. Also first match should not come in next row comparison.
OUTPUT2: Compare the Ledger col LDR with Statement Col SCR
CAN ANYONE HELP TO SOLVE THE SAME USING ALTERYX. I tried but not getting desired output.