I'm trying to create an analytic app where the user is able to select a date and then the data pulled from the database is "as of" that date. For example, if I go into the current JDE database we have, I can set the effective date as 12/31/2020 and then view the data as of that date.
A little background for the process, I am trying to generate an exception report for a specific indicator we have in a JDE datatable. We want to be able to run the workflow monthly in order to see if any of the exceptions have occurred, but we also want to be able to go to past months and see what the data looked like then, to ensure that any changes actually made sense.

In my workflow, I'm pulling from a database and then selecting only the most recent entry for a specific entity by using descending date + unique tool. I'm having issues figuring out how to let the user enter the date (12/31/2020 for example) and then telling the workflow to only incorporate data for 12/31/2020 or prior. From there I believe I can simply order all dates and then select unique values, but I'm stuck on updating an end date filter based on what the user selects.
Thanks in advance!