Is there a way to change the default value of the Time Intelligence Post Formula??
I have a Dashboard where I use From Date and To Date filters, to calculate the values between the user selected period, for those filters I use the Time Intelligence Post Formula,however the default when the user enters the page is always today's date on both filters. (and from today to today analysis doesn't make sense for this)
What I would like to to is have a From Date be something like 30 days before today's date, but not forced on the report receiving the filters, I just want the filter to have a default value and then let the user choose whatever he wants.
Anybody knows of something that can be done, or this just can't be done?
EDIT:
Throught research on this link showed me that it can't be done via Normal Ways:
sgrice asked this question: I love the calendar and the ease of linking it to my cube; however, we never have data for "Today" which is the default date. Therefore, our dashboards are always blank when they first come up and our client has to select a date. Is there a way to change the default date?
The author of the post says on a comment reply:
No sorry, but I will enter this as a feature suggestion.
Thanks,
Alyson
So there's no formal way of doing it so I'm trying to do this in another way. So I'm trying to do it in an more undocumented and obscure way, throught javascript. I would appreciate help on finding a way to do this.
I've solved it throught javascript and JQuery. I Basically checked what the calendar did, and reproduced it, I've realized it toogled the visibility of the calendar when you clicked on day, and since I wasn't interested on that i removed it, and called a method with this name pps_TI_calendar_render passing three parameters, one was the id of the calendar td, and the other two was the date you've selected in a complete name. I've checked if it would accept just two parameters, and the date in a simpler format the result is this javascript call (note that i'm only changing the first pps date calendar):
pps_TI_calendar_render( $('.pps_calendarToggleDown').first().parent().closest('td').attr('id'),'01/01/2010');
(this date format is month/day/year) if you put for example 14/01/2010 it will place the calendar in february first of 2011. So Watch out.
NOTE In the first parameter I've used a JQuery selection to get the id I wanted, this could be changed, but the parameter needs to be the id of the element pps uses.
Hope this helps.