Hi Guys,
I am running a a macro to generate interest accrual on a monthly basis for a large amount of transactions.
Part of the macro finds the EOM (accrual period) using the existing data for each transaction. as most transactions are paid weekly, each month generally has data so for the most part it works well.
there are however some transactions that have a long gap between payments, meaning the data input looks something like this:
| Amount | Rate | Date | EOMonth |
| 50000 | 12.60% | 1/06/2020 | 30/06/2020 |
| 17000 | 12.60% | 1/07/2020 | 31/07/2020 |
| 17000 | 12.60% | 1/09/2020 | 30/09/2020 |
| 17000 | 12.60% | 1/10/2020 | 31/10/2020 |
as you can see, there's no entries in August, so when my ledger generation runs, the total amount of interest accrued is correct across the entire transaction, but there's no line items for August.
I believe I'll need to use a Generate Rows formula, but cannot seem to work my way around it.
essentially the required output with the above example would be:
| Amount | Rate | Date | EOMonth |
| 50000 | 12.60% | 1/06/2020 | 30/06/2020 |
| 17000 | 12.60% | 1/07/2020 | 31/07/2020 |
| \N | 12.60% | \N | 31/08/2020 |
| 17000 | 12.60% | 1/09/2020 | 30/09/2020 |
| 17000 | 12.60% | 1/10/2020 | 31/10/2020 |
Kind regards,