Hi,
How to filter members in a dimension.
To meet a requirement, I made a table as a Fact and a Dimension. In the said table, I have a column which is varchar and contains unique values always. They can be said as 'A' or 'B' or 'C'. For all records in the said table, any of these three values can be present. But they are not from any lookup table but come from a third party system.
Using the AMO object, I am listing all the values are members. But the problem I am facing is, I am getting all values as members. As per my requirement, I must list only distinct of them
I am setting the DimensionAttribute object's Usage property to Key, OrderBy to OrderBy.Name and Type to Regular. What other property need to be set to list only the unique values as members?
I request a quick response to this query. I am desperately looking for the reply to solve the problem.
Thanks
Sekhar PC
Sorry Sekhar.
But the description of your problem is not very clear. Can you try to describe what you are trying to acheve.
Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi,
Thank you for your reply.
In my cube, I have a fact table which has a column of varchar type. Assume that, the possible values are A,B,C,D.
While building the cube using the AMO and VB.Net, I am required to list them as members in the cube. Essentially, I am required to fetch the distinct values from that column and list as members.
How to that using AMO and VB.Net?
Thanks in advance
Sekhar
|||You dont use AMO for retreiving data from Analysis Services. For that you use ADOMD.NET object model ( not the only option, but it might be easiest for you).
Here is some information on how to use ADOMD.NET
http://msdn2.microsoft.com/en-us/library/ms123483.aspx
http://msdn2.microsoft.com/en-us/library/ms123477.aspx
You can try and get a book on Analysis Services: Teo Lachev's "Applied Microsoft Analysis Services 2005.. " is good one you can use.
Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
No comments:
Post a Comment