...
The code to do this is available in the attachments attachment here :
Note: in TOAD, the three scripts, for SDR, Equipment AD and AD need to be run separately.
Simply replace the <> values with the required dates, run the queries, drop the data into an Excel spreadsheet, attach the spreadsheet to the PBI (one tab per result set), and notify the requestor.
...