I have a query that\'s intended as the base dataset for an AR Aging report in a BI tool. The report has to be able to show AR as of a given date across a several-month range