NewToCrystalX
Technical User
I have 2 ways to choose date range.
One - I have a static parameter called {?Last Days} with;
7 (previous 7 days)
14 (previous 14 days)
... and so on.
Then in record selection I have this formula -
{data.timestamp}in currentdate-{?Last Days}to currentdate
Two - I have another parameter called {?Date Range}
Then in Record selection I have
{data.timestamp}={?Date Range}
This brings up two calendars for selecting Start date and end date.
NOW TO MY QUESTION -
I cannot figure out how to use both of these at the same time.
I want the end user to be able to chooses if they want a date range by choosing a start/end date OR by choosing Previous 7 days, etc.
In other words... in record selection, if one range is populated, the other type selection is allowed to be null...or any other way you think this would work.
Thanks in advance.
DMD
One - I have a static parameter called {?Last Days} with;
7 (previous 7 days)
14 (previous 14 days)
... and so on.
Then in record selection I have this formula -
{data.timestamp}in currentdate-{?Last Days}to currentdate
Two - I have another parameter called {?Date Range}
Then in Record selection I have
{data.timestamp}={?Date Range}
This brings up two calendars for selecting Start date and end date.
NOW TO MY QUESTION -
I cannot figure out how to use both of these at the same time.
I want the end user to be able to chooses if they want a date range by choosing a start/end date OR by choosing Previous 7 days, etc.
In other words... in record selection, if one range is populated, the other type selection is allowed to be null...or any other way you think this would work.
Thanks in advance.
DMD