Teo,
Nice book! I just picked it up and I'm working through it. I have a question concerning how parameters work with the new RS and AS tools. In the 200 versions I had an MDX query:
=
"select
{[Measures].[Cust Ret Last Week], [Measures].[Pct Cust Ret Last Week Overview],
[Measures].[Cust Ret Prev 4 Weeks], [Measures].[Pct Cust Ret Prev 4 Weeks Overview], [Measures].[Avg Cust Ret Prev 4 Weeks],
[Measures].[Cust Ret Prev 8 Weeks], [Measures].[Pct Cust Ret Prev 8 Weeks Overview], [Measures].[Avg Cust Ret Prev 8 Weeks]} on columns,
NON EMPTY {order({[Attributed Class].children}, ([Measures].[Cust Ret Last Week]), DESC)} on rows
from
[Onion Peel]
where
(" & Parameters!product_family.Value & ",
[Drive Diagnosis Code].[All Drive Diagnosis Code].[valid],
[VMI].[All VMI].[valid],
[Source Code].[All Source Code].[valid])"
that did what I needed. Now, I am trying to port this to 2005 and finding parameters a bit cumbersome. First a ported the dims et all to match the new schema in the UDM and changed the parameter to be specfied by the @:
select
{[Measures].[Cust Ret Last Week], [Measures].[Pct Cust Ret Last Week Overview],
[Measures].[Cust Ret Prev 4 Weeks], [Measures].[Pct Cust Ret Prev 4 Weeks Overview], [Measures].[Avg Cust Ret Prev 4 Weeks],
[Measures].[Cust Ret Prev 8 Weeks], [Measures].[Pct Cust Ret Prev 8 Weeks Overview], [Measures].[Avg Cust Ret Prev 8 Weeks]} on columns,
NON EMPTY {order({[Attributed Class].[Attributed Class].children}, ([Measures].[Cust Ret Last Week]), DESC)} on rows
from
[Onion Peel]
where
(strtoset(@product_family),
[Drive Diagnosis Code].[Drive Diagnosis Code].[OP Filter].&[valid],
[VMI].[VMI].[OP Filter].&[valid],
[Source Code].[Source Code].[OP Filter].&[valid])
First, why do I need to strtoset() this. I don't want a set, this is just a single value. Second, it appears that I have to define my parameter in Report -> Parameters and by right clicking in the data pane. How do I leave a null value as the default then as leaving default blank in the right clicked section greys out the "OK" button? While the string method from 2000 was a pain, this seems to be worse.
Just a personal methodology questions, how do you go about naming/using your dim, attribute, hierarchies so you don't end up having all this repetition?
Anyway, just wondering what your thoughts were on parameters.
Keehan