@tradin4bacon Hi Gary, welcome to the community and nice to meet you!
Good app idea, I have a couple solutions that may help.
Here's an example I provided on another post that shows how to set up a screen that allows users to enter start and end date for a list. For your ask, I created an example building on this.
Since you're looking to specify date ranges, you can define that range in the table associated to your radio buttons. This is a table I set up for your example:
There's a formula in each that calculates the start and end dates, based on TODAY()
. You can define the start dates and end date however you'd like in the table.
In my example, for the "All" range, I set an arbitrary date from which reporting may have began, and the end date is =TODAY()
.
The other dates match the current year or month with formulas such as =DATE(YEAR(TODAY()),1,1)
or =DATE(YEAR(TODAY()),MONTH(TODAY()),1)
And the week range is set over the last 7 days from=TODAY()-7
to =TODAY()
.
In the app, I added a radio buttons of the Time Range table, variables to store the Start and End dates, a list to display the data, and a button to update the list:
The Update button is set up to change the Start and End date variables on the screen:
You can see that the formulas pull data from the tables that you defined, by calling the column of the rowlink associated to the selected Radio button.
Example formula looks like: =$[Radio][Start Date]
Now in the app, you can select the toggles to quickly update the date range of the displayed data:
Hope this helps! Let us know if you have any further questions on this.
Moderator note: Edited post to update radio button formulas and screenshot.