I am presenting a dashboard to my users that shows some graphs of recent activity, and I allow them to select a month (parameter) as far as 12 months ago.
YearMonthSelector 20130917.jpg
My question is: how can I default the month parameter to the "current" one, based on a sql query that would retrieve the most recent month that I have data loaded for? I don't want to default to a fixed value since that will be out of date next month. I suppose I could add to the dropdown list a value of "Current" and look for that when retrieving the data, but that's not particularly elegant.
Is there a way to embed a sql call or a variable value into the property value of the parameter?
Thanks in advance for any help
- Russell
YearMonthSelector 20130917.jpg
My question is: how can I default the month parameter to the "current" one, based on a sql query that would retrieve the most recent month that I have data loaded for? I don't want to default to a fixed value since that will be out of date next month. I suppose I could add to the dropdown list a value of "Current" and look for that when retrieving the data, but that's not particularly elegant.
Is there a way to embed a sql call or a variable value into the property value of the parameter?
Thanks in advance for any help
- Russell