Hi,
I have a procedure which is something like this
Declare
@FiscalDay AsInt
@location AsINT
Select
*
From
EDW.Retail.TEDW_F_EMAIL_CAPTURE
Inner
Join
Edw
.Calendar.TEDW_D_DATE_TYPE_1
On
TEDW_F_EMAIL_CAPTURE.DATE_KEY= TEDW_D_DATE_TYPE_1.DATE_KEY
left
outerjoin
EDW
.Location.TEDW_D_LOCATION_TYPE_3
on
TEDW_D_LOCATION_TYPE_3.LOCATION_KEY_AS_WAS= TEDW_F_EMAIL_CAPTURE.LOCATION_KEY_AS_WAS
Where
case
when TEDW_D_LOCATION_TYPE_3.LOCATION_NUMisnull
then 1
else TEDW_D_LOCATION_TYPE_3.LOCATION_NUM
end=case
when TEDW_D_LOCATION_TYPE_3.LOCATION_NUMisnull
then 1
else @Location
end
And
TEDW_D_DATE_TYPE_1.DATE_KEY<= @FiscalDay
Declare
Now,i have to use this in ssrs dataset ,If i give @FiscalDay hardcoded as '20120524' then the report runs fine but gives me the values for only 5/24 irrespective of the day as it is hardcoded.But the problem is if i dont hardcode the date and want to get the values at runtime it gives me nothing.My date paramater is of datetime.Can somebody help me
with this please?Thanks