05-18-2015 05:01 AM
I have a drop down with dates. The data is updated every month, so new dates appears all the time.
My question is if it is possible to get the drop down menu to choose the "newest" date automatically when the report is updated with new data?
10-27-2015 11:53 AM
I have the same query.Can someone throw some light on this.Also, Is there a way to set a recent date as a default selection for a line chart.
10-28-2015 10:03 AM
11-19-2015 01:18 PM
I have a solution using parameters to let a Date dropdown always start with the current date.
Selecting a history button, the ather dates get selectable.
You can make any version of this, so not be tied down to this example.
If this would get close to your question, I can provide you with the solution set-up
11-23-2015 11:00 AM
At first I created a key selection table in LASR to be able to create the button selection.
So for this purpose there are two values (Today,History)
Using a separate table guarantees no intervention problems with the original data table.
While selecting the button the value is being transferred to the linked Parameter (Lets call it Period.Sel)
On the Date DropDownList now add the next filter
IF ( 'Period.Sel.'p = 'Today' )
RETURN ( 'DATE'n = DatePart(Now()) )
ELSE ( 'DATE'n < DatePart(Now()) )
Anyway sort the dropdownlist descending by date, so even with History the last date will show on top of the list.
This should do the job.
Greetings and good luck.