Thanks v. much.
How can I name this query and show in Analysis Manager, like other cubes
created with Wizards, because I want to use this query with Crystal Reports.
Do I have to use Create Cube Statement?
Further, can I pass parameters to Date Ranges, instead of fixing the Dates
in Cubes or any alternate to this solution.
Best Regards,
Luqman
"Milind" <milind.bhabal (AT) gmail (DOT) com> wrote
Quote:
You can write the MDX query in the MDX Builder. If you want to run it
in Query Analyzer, you have to use openquery to run the same MDX. Query
Analyzer doesn't understand MDX statements.
Invoice_Amount should be a measure in your case, then you can write a
mdx query like
with set [Invoice].[Date Range] as
'[Invoice].[Invoice_Date].[1/1/2005]:[Invoice].[Invoice_Date].[12/31/2005]'
select <your measure> on columns,
your dimension> on rows
where ([Invoice].[Date Range])
HTH
Milind |