Forum Discussion

joemillson's avatar
joemillson
Frequent Visitor
5 years ago
Solved

List month end dates, between start and end date

Hello,

 

I have a table for Scheduled Invoices, as follows:

Invoice IDStartEndFreqAmount
131/05/202131/08/2021Monthly2000
231/05/202131/07/2021Monthly1000

 

And would like the above to become as below with Invoice Date listed, where Invoice Date = end of month date, of months between Start and End:

 

Invoice IDStartEndFreqAmountInvoice Date
131/05/202131/08/2021Monthly200031/05/2021
131/05/202131/08/2021Monthly200030/06/2021
131/05/202131/08/2021Monthly200031/07/2021
131/05/202131/08/2021Monthly200031/08/2021
231/05/202131/07/2021Monthly100031/05/2021
231/05/202131/07/2021Monthly100030/06/2021
231/05/202131/07/2021Monthly100031/07/2021

 

Thanks in advance

Joe

3 Replies