hello
i'm writing a vb program that must know the data of the dimensions that i have in cubes. however i had not see how to show in vb the data of dimensions. is it necessery to use a select or is there another way to have it in vb ( using mdx )
thx
hello
i'm writing a vb program that must know the data of the dimensions that i have in cubes. however i had not see how to show in vb the data of dimensions. is it necessery to use a select or is there another way to have it in vb ( using mdx )
thx
dimensions...how to
Kristy2610
In ADOMD, you can get the members of a level by using the Members property of the Level object or the Children property of a Member object. However, this can get slow if a level contains a great deal of members simple due to the volume of data being requested. Another way to get a set of members is to use an MDX query. This is a little bit more work in generating the MDX, but allows more flexibility in controlling the members you retrieve and what properties are requested for those members.
Tips for generating MDX queries to retrieve members:
Example:
SELECT SUBSET( FILTER( ADDCALCULATEDMEMBERS( [Employee Dimension].[Employee].[All].CHILDREN ), ( LEFT( [Employee Dimension].[Employee].CurrentMember.Properties("Last Name"), 1 ) = "c" ) AND ( LEFT( [Employee Dimension].[Employee].CurrentMember.Properties("First Name"), 1 ) = "m" ) ), 0, 501 ) DIMENSION PROPERTIES MEMBER_NAME, MEMBER_TYPE ON 0, {} ON 1 FROM [Foodmart 2000]
Sahir Shah
thks matt..
however i'm still having problems. i undestand that i have to use COM, i have made my vb6 program. i execute mdx queries and have results. my mdx as dimension in row and columns. but, for each mdx i must rewirte the mdx so that a new data in that dimension is considered. i would like to have ( say a combobox) for each dimension that i have and to choose the value that i want for that dimension. so my question is how to populate the combobox with all the values from one dimension ( like in analysis server when after processing a cube we can choose the values of dimensions)
thks!
Luis Esteban Valencia Munoz
MTech8
thks matt!!!!!
you see, i have a huge statisct work to do ( based on a student' database in sql). last year i had do it with analysis server but it consumed a lot of time cause i had to select the members that i wanted ( pivot table). so this year, i'm going to use dts to fine tune the tables needed and a vb program so that it can register ( for futur use) all the mdx that i am going to construct. next year it shell be quite simple ( at least i hope!)
thks again matt!