Default parameter value

1.4k Views Asked by At

Can a report have a default parameter value without prompting for data? Such as making a report that automatically only pulls data from yesterday? From the last 7 work days, etc?

2

There are 2 best solutions below

1
4444 On

Use calculations based on CurrentDate. To get yesterday's date, use CurrentDate - 1, or if you only want records from the last week, filer out any records dated before CurrentDate - 7

This can either be implemented as an optional parameter (which defaults to yesterday if you leave it blank) or if you never want to prompt the user for input, skip the parameter entirely and place your formula directly into the record selection formula editor.

2
Justin Woodmancy On

You can also do what 4444 said in the Select Expert:

{date_field} = CurrentDate - 1 //For yesterdays data

{date_field} = CurrentDate - 7 //For the last weeks data

enter image description here