Hello All,
I am very new to MDX.I am struggling to implement parameters in MDX.Can somebody help me with this.
This is how my Date dimension is - [Date].[Month]. The month values are like this Feb-12,Jan-10,Mar-10 etc. I created a dataset to get the latest date from the cube.The value I get from the dataset is Feb-13,which is correct.
Now I want to limit my main dataset to get values only for Feb-13.This is the reason I am creating a parameter.but this parameter should be hidden.Here is the query for my main dataset.
select {([Measures].[Market Value]), ([Measures].[Balance])} on columns
,non empty([Account].[Sr Administrator].children, [Account].[Control Nm].children
, [Account].[Account Name].children, [Account].[Acct Number].children) on rows
from [NavCube]
where (STRTOMEMBER(@latest_date))
I tried creating a parameter.I just clicked on the @(Query parameters) in the Query Designer and I filled in the parameter Name,Dimension as Date,Hierarchy as Month.I did not check the Multiple Values check box,then I have the Default where I can say All or pick particular month.But here I want the value to be the latest date from the cube.How can I do this? Is it ok if I select some value in this dialog and when I run the report the correct value will be passed for my latest_date parameter?
Can somebody put some thoughts into this.Thanks in advance.