Wednesday, March 28, 2012
Parameter label property is null when passed to subreports
"Fiscal 2004") to a sub-report. When I print out Parameters!pTime.Label on
the main report it diplays fine. When I print it out on the subreport it
shows a null value. It seems this parameter label property is not passed
along to the subreport.
Is this bug fixed? If not, does anyone know of a work around. I do not
want to have to look up the label in all my subreports.
FYI: The Parameters!pTime.Value property is passed to the subreport fine.
Thanks,
Dan
--
___________________________
Daniel J. Zaccarine
Hanford Bay Associates, Ltd.
dan_zaccarine@.hanfordbay.com
http://www.hanfordbay.com
___________________________Hi Dan,
Thanks for your posting!
I am trying to reproduce it on my side, I will keep you updated when I find
there is anything valueable to add.
Thank you for your patience and corporation.
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||Hi Dan,
I am afraid that it is by design. An available values list contains a set
of value/label pairs. When the report is run, the user sees the label. When
the user selects a label, the corresponding value is used as the parameter
value .
However, when parameter value is transferred to subreport, it is not
neceesary to manully choose lable and the parameter value from parent
report is transferred to subreport automatically.
I am not sure why you would like to see label of a parameter in subreport?
Is it possible for you to find a workaround in your project?
Thank you for your patience and corporation. If you have any questions or
concerns, don't hesitate to let me know. We are always here to be of
assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||> I am not sure why you would like to see label of a parameter in subreport?
I have to display the prompt descriptions(Labels) on the subreports detail
section. I am querying against an AS cube with MDX to populate parameter
lists.
I the use the Value to MDX query cube data in the subreport.
The values are returned in a format similar to this: "[Gender].[Male]"
with a Label of "Male"
I need to display "Male" on the subreport.
> Is it possible for you to find a workaround in your project?
Yes, I have found a method to extract the text I need from the Value using
expressions.
Thanks,
Dan
___________________________
Daniel J. Zaccarine
Hanford Bay Associates, Ltd.
___________________________
"Michael Cheng [MSFT]" <v-mingqc@.online.microsoft.com> wrote in message
news:%23duw3RdAFHA.764@.cpmsftngxa10.phx.gbl...
> Hi Dan,
> I am afraid that it is by design. An available values list contains a set
> of value/label pairs. When the report is run, the user sees the label.
When
> the user selects a label, the corresponding value is used as the parameter
> value .
> However, when parameter value is transferred to subreport, it is not
> neceesary to manully choose lable and the parameter value from parent
> report is transferred to subreport automatically.
> I am not sure why you would like to see label of a parameter in subreport?
> Is it possible for you to find a workaround in your project?
> Thank you for your patience and corporation. If you have any questions or
> concerns, don't hesitate to let me know. We are always here to be of
> assistance!
>
> Sincerely yours,
> Michael Cheng
> Online Partner Support Specialist
> Partner Support Group
> Microsoft Global Technical Support Center
> ---
> Get Secure! - http://www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only, many thanks!
>
Friday, March 23, 2012
Parallelperiod problem
Hi,
I tried to get last 52 weeks from the current period for LY sales.
We have fiscal date hierarchy (year - quarter - month -week) .
In scripts,
Paralleldate ( [date].[hierarchy].[year number], 1 , [date].[hierarchy].currentmember )
this works fine.
but
Scope([Date].[FISCAL YEAR NUMBER].members, [Date].[FISCAL MONTH NAME].members ,[Date].[FISCAL WEEK HISTORICAL NUMBER].members, [Date].[DATE KEY].members);
-- PRIOR YEAR CALCULATIONS
([Time Calculations].[Prior Year]=
(ParallelPeriod([Date].[Hierarchy].[Date].[Hierarchy].[FISCAL WEEK HISTORICAL NUMBER],52,
[Date].[Hierarchy].CurrentMember)
,[Time Calculations].&[ Current Period])
);
End Scope;
) ,
then it doesn't work. I don't know why. ( I can deploy the cube but when I browse the cube, it gives an error without any detailed info. )
FYI, we have fiscal week in historical number ( 52 weeks in fiscal yr) in date table.
then it doesn't work. I don't know why.
Please give me any comments.A couple of clarifications:
- What is the purpose of this scope statement:
Scope([Date].[FISCAL YEAR NUMBER].members, [Date].[FISCAL MONTH NAME].members ,[Date].[FISCAL WEEK HISTORICAL NUMBER].members, [Date].[DATE KEY].members);
- Why is this assignment enclosed in parentheses:
([Time Calculations].[Prior Year]=
(ParallelPeriod([Date].[Hierarchy].[Date].[Hierarchy].[FISCAL WEEK HISTORICAL NUMBER],52,
[Date].[Hierarchy].CurrentMember)
,[Time Calculations].&[ Current Period])
);
|||Sorry for the late response.
Now, we've just found some problems with perivios one, Due to the Hierarhcy attribute ( fiscal week key) we can't get last 52 weeks in time calculation called shell dimension.
But,
If I use time intelligence calculation wizard and change some for the prior year calcuation then the formula works fine only in week level .(please refer script as below)
I can't see values in year , quarter, and month levels ( these show 0 value), and in day level I can see the values but values are wrong.
To solve this problem and to view prior year value in all levels( y- q- m -w- day) , how can I approach ?
It seems this formula only works for week level values.
Thank you in advance and please give me any comments.
--Scripts for prior year--
(
[Date].[Fiscal Hierarchy Date Calculations].[Prior Year],
[Date].[FISCAL WEEK HISTORICAL NUMBER].[FISCAL WEEK HISTORICAL NUMBER].Members,
[Date].[Tbl DIM Date].Members
) =
Aggregate(
{ [Date].[Fiscal Hierarchy Date Calculations].DefaultMember } *
{
ParallelPeriod(
[Date].[Fiscal Hierarchy].[FISCAL WEEK],
52,
[Date].[Fiscal Hierarchy].CurrentMember
) : [Date].[Fiscal Hierarchy].CurrentMember
})
- Aggregate(
{ [Date].[Fiscal Hierarchy Date Calculations].DefaultMember } *
{
ParallelPeriod(
[Date].[Fiscal Hierarchy].[FISCAL WEEK],
51,
[Date].[Fiscal Hierarchy].CurrentMember
) : [Date].[Fiscal Hierarchy].CurrentMember
}
);
sql