July 3, 2013 at 11:19 am
Hello,
I create the parameter date to the day of Mother's Day mother never trough the same day, is always on the second Sunday of May?
is possibel to create this parameter?
July 4, 2013 at 12:50 am
You can write a SQL query that calculates this value and use this query to populate a default value for the parameter.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 4, 2013 at 2:33 am
how do the SQL query to calculate this value?
July 4, 2013 at 3:26 am
You probably need a date table for this, which for example stores all the dates between 2000 and 2050.
An example on how to generate such a table can be found here:
Script to Populate Date Dimension, without Using a Cursor
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 4, 2013 at 10:33 am
I managed to build the SQL, it was through a SP
Only now I have a problem, I can not update the date
I will explain
I have a parameter with years. default is 2012
and the parameter of dates fetches the year.
Then when I change the year, the dates of the parameter does not update!
How do I solve this problem?
July 4, 2013 at 10:39 am
amadeu_j (7/4/2013)
I managed to build the SQL, it was through a SPOnly now I have a problem, I can not update the date
I will explain
I have a parameter with years. default is 2012
and the parameter of dates fetches the year.
Then when I change the year, the dates of the parameter does not update!
How do I solve this problem?
Did you make the parameters cascading?
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 4, 2013 at 10:55 am
No
July 4, 2013 at 11:40 am
So I can not put any parameter by default?
July 4, 2013 at 1:14 pm
amadeu_j (7/4/2013)
So I can not put any parameter by default?
You can put a default on a parameter. You just need to make the dataset that calculates motherday dependend on the first parameter.
This thread goes deeper into the problem of cascading parameters not refreshing:
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply