![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to populate a drop down box with the values in the analysis services Dimension. Is there a way of querying a AS 2000 dimension with MDX the way we query cubes. Please help how I can query the Product dimension from the Foodmart database. Also, similarly can we query the AS 2000 hierarchy. Thanks Karen |
#3
| |||
| |||
|
|
I want to populate a drop down box with the values in the analysis services Dimension. Is there a way of querying a AS 2000 dimension with MDX the way we query cubes. Please help how I can query the Product dimension from the Foodmart database. Also, similarly can we query the AS 2000 hierarchy. Thanks Karen |
#4
| |||
| |||
|
|
Look in BOL for schema rowsets. There are several implemented for Analysis Services which allow you to browse the cube and dimension metadata. |
#5
| |||
| |||
|
|
Look in BOL for schema rowsets. There are several implemented for Analysis Services which allow you to browse the cube and dimension metadata. If you are using ADOMD/ADOMD.NET, the stick with the schema rowsets as suggested by Dave. However, if you are trying to get a list of member for use by Reporting Services for example I don't think you can get to the schema rowsets (although I would be happy to be corrected...Dave?) For Reporting Services I have used MDX similar to the following: WITH Member Measures.ProductName as 'VBA!String (Product.CurrentMember.Level.Ordinal," ") + Product.CurrentMember.Name' Member Measures.ProductUniqueName as 'Product.CurrentMember.UniqueName' SELECT PRODUCT.MEMBERS ON ROWS, {Measures.Fake ,Measures.ProductName ,Measures.ProductUniqueName} ON COLUMNS FROM Sales The 'ProductName' measure gives you an indented version of the product dimension, 'ProductUniqueName' gives you the uniquename that you can incorporate back into your MDX query. I think both techniques will work fine with hierarchies, in AS2k hierarchies behave much like just another dimension with a specific naming convention. -- Regards Darren Gosbell [MCSD] dgosbell_at_yahoo_dot_com Blog: http://www.geekswithblogs.net/darrengosbell |
![]() |
| Thread Tools | |
| Display Modes | |
| |