![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Thread-Topic: AMO Example for DegenerateMeasureGroupDimension thread-index: AcXpurjdfK9S3nt4QWqOIGGNXghepw== X-WBNR-Posting-Host: 203.202.23.100 From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam Subject: AMO Example for DegenerateMeasureGroupDimension Date: Tue, 15 Nov 2005 00:01:02 -0800 Lines: 11 Message-ID: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Newsgroups: microsoft.public.sqlserver.olap NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64475 X-Tomcat-NG: microsoft.public.sqlserver.olap I'm trying to add a measure group dimension with a relationship type of fact. It looks like this is a DegenerateMeasureGroupDimension I've added it with AMO and the results look OK. It doesn't show up the same was as a manually created one in the cube dimension usage panel. It's saying "a fact dimension has been created in a way the user interface does not support". Is there an AMO Example for DegenerateMeasureGroupDimension |
#3
| |||
| |||
|
|
Hi, Currently I did not find and sample code for DegenerateMeasureGroupDimension class. Will you provide the code you use to create this dimension? I will try to reproduce the issue on my side. Best Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | thread-index: AcXpurjdfK9S3nt4QWqOIGGNXghepw== | X-WBNR-Posting-Host: 203.202.23.100 | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | Subject: AMO Example for DegenerateMeasureGroupDimension | Date: Tue, 15 Nov 2005 00:01:02 -0800 | Lines: 11 | Message-ID: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 7bit | X-Newsreader: Microsoft CDO for Windows 2000 | Content-Class: urn:content-classes:message | Importance: normal | Priority: normal | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | Newsgroups: microsoft.public.sqlserver.olap | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64475 | X-Tomcat-NG: microsoft.public.sqlserver.olap | | I'm trying to add a measure group dimension with a relationship type of fact. | It looks like this is a | DegenerateMeasureGroupDimension | | I've added it with AMO and the results look OK. | It doesn't show up the same was as a manually created one in the cube | dimension usage panel. | It's saying "a fact dimension has been created in a way the user interface | does not support". | | Is there an AMO Example for DegenerateMeasureGroupDimension | |
#4
| |||
| |||
|
|
Thread-Topic: AMO Example for DegenerateMeasureGroupDimension thread-index: AcXqf9Xpt84enCBHTCeJF49+/4duIw== X-WBNR-Posting-Host: 203.202.23.100 From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam References: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com NFfgbfl6FHA.832 (AT) TK2MSFTNGXA02 (DOT) phx.gbl Subject: RE: AMO Example for DegenerateMeasureGroupDimension Date: Tue, 15 Nov 2005 23:32:02 -0800 Lines: 99 Message-ID: <4FCCCDA1-6BCC-40B0-A4A5-0C270599BB1F (AT) microsoft (DOT) com MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Newsgroups: microsoft.public.sqlserver.olap NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64525 X-Tomcat-NG: microsoft.public.sqlserver.olap Hi, it's generic code (driven for metadata stored in tables) Let me know if the following isn't enough 'Dimension may have already been added when processing another measure group 'If the dimension is already there use it Try objCubeDim = objCube.Dimensions.FindByName(strDimName) If objCubeDim Is Nothing Then 'Add Dimension to the Cube objCubeDim = objCube.Dimensions.Add(objDim.ID) objCubeDim.Name = strDimName End If Catch ex As Exception FlagError("Failed CreateCubeDimension. Can't Add " & strDim, "Y") Return End Try Try ' Have to create appropriate object based on relationship type If strRelationshipType = "Fact" Then 'Fact relationship so use DegenerateMeasureGroupDimension Dim objMGFactDim As New DegenerateMeasureGroupDimension objMGFactDim.CubeDimensionID = objCubeDim.ID ' add to the measure group objMeasureGroup.Dimensions.Add(objMGFactDim) objMGA = objMGFactDim.Attributes.Add(objDim.KeyAttribute.ID ) objMGA.Type = MeasureGroupAttributeType.Granularity 'Add Key objMGA.KeyColumns.Add(strMeasureGroupTable, strMeasureGroupKey, OleDbType.WChar) Else "Peter Yang [MSFT]" wrote: Hi, Currently I did not find and sample code for DegenerateMeasureGroupDimension class. Will you provide the code you use to create this dimension? I will try to reproduce the issue on my side. Best Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | thread-index: AcXpurjdfK9S3nt4QWqOIGGNXghepw== | X-WBNR-Posting-Host: 203.202.23.100 | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | Subject: AMO Example for DegenerateMeasureGroupDimension | Date: Tue, 15 Nov 2005 00:01:02 -0800 | Lines: 11 | Message-ID: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 7bit | X-Newsreader: Microsoft CDO for Windows 2000 | Content-Class: urn:content-classes:message | Importance: normal | Priority: normal | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | Newsgroups: microsoft.public.sqlserver.olap | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64475 | X-Tomcat-NG: microsoft.public.sqlserver.olap | | I'm trying to add a measure group dimension with a relationship type of fact. | It looks like this is a | DegenerateMeasureGroupDimension | | I've added it with AMO and the results look OK. | It doesn't show up the same was as a manually created one in the cube | dimension usage panel. | It's saying "a fact dimension has been created in a way the user interface | does not support". | | Is there an AMO Example for DegenerateMeasureGroupDimension | |
#5
| |||
| |||
|
|
Hi, I was not able to use the code to createa Degenerate Measure Group Dimension at present. I will perform some more research and get back ASAP. Also, I suggest that you right click the manully created fact dimension->Script demension as->Create to->New query editor Window and check attributes of the dimension you need. Thanks. Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | thread-index: AcXqf9Xpt84enCBHTCeJF49+/4duIw== | X-WBNR-Posting-Host: 203.202.23.100 | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | References: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com NFfgbfl6FHA.832 (AT) TK2MSFTNGXA02 (DOT) phx.gbl | Subject: RE: AMO Example for DegenerateMeasureGroupDimension | Date: Tue, 15 Nov 2005 23:32:02 -0800 | Lines: 99 | Message-ID: <4FCCCDA1-6BCC-40B0-A4A5-0C270599BB1F (AT) microsoft (DOT) com | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 7bit | X-Newsreader: Microsoft CDO for Windows 2000 | Content-Class: urn:content-classes:message | Importance: normal | Priority: normal | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | Newsgroups: microsoft.public.sqlserver.olap | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64525 | X-Tomcat-NG: microsoft.public.sqlserver.olap | | Hi, | | it's generic code (driven for metadata stored in tables) | Let me know if the following isn't enough | | 'Dimension may have already been added when processing another | measure group | 'If the dimension is already there use it | Try | | objCubeDim = objCube.Dimensions.FindByName(strDimName) | If objCubeDim Is Nothing Then | 'Add Dimension to the Cube | objCubeDim = objCube.Dimensions.Add(objDim.ID) | objCubeDim.Name = strDimName | End If | Catch ex As Exception | FlagError("Failed CreateCubeDimension. Can't Add " & strDim, "Y") | Return | End Try | Try | ' Have to create appropriate object based on relationship type | If strRelationshipType = "Fact" Then | 'Fact relationship so use DegenerateMeasureGroupDimension | Dim objMGFactDim As New DegenerateMeasureGroupDimension | objMGFactDim.CubeDimensionID = objCubeDim.ID | ' add to the measure group | objMeasureGroup.Dimensions.Add(objMGFactDim) | objMGA = objMGFactDim.Attributes.Add(objDim.KeyAttribute.ID ) | objMGA.Type = MeasureGroupAttributeType.Granularity | 'Add Key | objMGA.KeyColumns.Add(strMeasureGroupTable, | strMeasureGroupKey, OleDbType.WChar) | Else | | | "Peter Yang [MSFT]" wrote: | | > Hi, | | > Currently I did not find and sample code for | > DegenerateMeasureGroupDimension class. Will you provide the code you use to | > create this dimension? I will try to reproduce the issue on my side. | | > Best Regards, | | > Peter Yang | > MCSE2000/2003, MCSA, MCDBA | > Microsoft Online Partner Support | | > When responding to posts, please "Reply to Group" via your newsreader so | > that others may learn and benefit from your issue. | | > ================================================== === | | | | > This posting is provided "AS IS" with no warranties, and confers no rights. | | > -------------------- | > | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | > | thread-index: AcXpurjdfK9S3nt4QWqOIGGNXghepw== | > | X-WBNR-Posting-Host: 203.202.23.100 | > | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | > | Subject: AMO Example for DegenerateMeasureGroupDimension | > | Date: Tue, 15 Nov 2005 00:01:02 -0800 | > | Lines: 11 | > | Message-ID: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com | > | MIME-Version: 1.0 | > | Content-Type: text/plain; | > | charset="Utf-8" | > | Content-Transfer-Encoding: 7bit | > | X-Newsreader: Microsoft CDO for Windows 2000 | > | Content-Class: urn:content-classes:message | > | Importance: normal | > | Priority: normal | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | > | Newsgroups: microsoft.public.sqlserver.olap | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64475 | > | X-Tomcat-NG: microsoft.public.sqlserver.olap | > | | > | I'm trying to add a measure group dimension with a relationship type of | > fact. | > | It looks like this is a | > | DegenerateMeasureGroupDimension | > | | > | I've added it with AMO and the results look OK. | > | It doesn't show up the same was as a manually created one in the cube | > | dimension usage panel. | > | It's saying "a fact dimension has been created in a way the user | > interface | > | does not support". | > | | > | Is there an AMO Example for DegenerateMeasureGroupDimension | > | | | | |
#6
| |||
| |||
|
|
Thread-Topic: AMO Example for DegenerateMeasureGroupDimension thread-index: AcXr5ybsuzSplOzQREefbpCHCc+uKA== X-WBNR-Posting-Host: 203.202.23.100 From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam References: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com NFfgbfl6FHA.832 (AT) TK2MSFTNGXA02 (DOT) phx.gbl |
|
Subject: RE: AMO Example for DegenerateMeasureGroupDimension Date: Thu, 17 Nov 2005 18:24:07 -0800 Lines: 170 Message-ID: <2B911DF7-36E8-4521-BC24-E97322D7AE44 (AT) microsoft (DOT) com MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Newsgroups: microsoft.public.sqlserver.olap NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64607 X-Tomcat-NG: microsoft.public.sqlserver.olap Hi, Did you mean right-click on right-click on the measure group? If so the XML looks the same for the manually created DegenerateMeasureGroupDimension and the one generated through AMO. I assume this means it works OK (looks like it is) but Business Intelligence Development Studio isn't handling something created with AMO? Thanks "Peter Yang [MSFT]" wrote: Hi, I was not able to use the code to createa Degenerate Measure Group Dimension at present. I will perform some more research and get back ASAP. Also, I suggest that you right click the manully created fact dimension->Script demension as->Create to->New query editor Window and check attributes of the dimension you need. Thanks. Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | thread-index: AcXqf9Xpt84enCBHTCeJF49+/4duIw== | X-WBNR-Posting-Host: 203.202.23.100 | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | References: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com NFfgbfl6FHA.832 (AT) TK2MSFTNGXA02 (DOT) phx.gbl | Subject: RE: AMO Example for DegenerateMeasureGroupDimension | Date: Tue, 15 Nov 2005 23:32:02 -0800 | Lines: 99 | Message-ID: <4FCCCDA1-6BCC-40B0-A4A5-0C270599BB1F (AT) microsoft (DOT) com | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 7bit | X-Newsreader: Microsoft CDO for Windows 2000 | Content-Class: urn:content-classes:message | Importance: normal | Priority: normal | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | Newsgroups: microsoft.public.sqlserver.olap | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64525 | X-Tomcat-NG: microsoft.public.sqlserver.olap | | Hi, | | it's generic code (driven for metadata stored in tables) | Let me know if the following isn't enough | | 'Dimension may have already been added when processing another | measure group | 'If the dimension is already there use it | Try | | objCubeDim = objCube.Dimensions.FindByName(strDimName) | If objCubeDim Is Nothing Then | 'Add Dimension to the Cube | objCubeDim = objCube.Dimensions.Add(objDim.ID) | objCubeDim.Name = strDimName | End If | Catch ex As Exception | FlagError("Failed CreateCubeDimension. Can't Add " & strDim, "Y") | Return | End Try | Try | ' Have to create appropriate object based on relationship type | If strRelationshipType = "Fact" Then | 'Fact relationship so use DegenerateMeasureGroupDimension | Dim objMGFactDim As New DegenerateMeasureGroupDimension | objMGFactDim.CubeDimensionID = objCubeDim.ID | ' add to the measure group | objMeasureGroup.Dimensions.Add(objMGFactDim) | objMGA = objMGFactDim.Attributes.Add(objDim.KeyAttribute.ID ) | objMGA.Type = MeasureGroupAttributeType.Granularity | 'Add Key | objMGA.KeyColumns.Add(strMeasureGroupTable, | strMeasureGroupKey, OleDbType.WChar) | Else | | | "Peter Yang [MSFT]" wrote: | | > Hi, | | > Currently I did not find and sample code for | > DegenerateMeasureGroupDimension class. Will you provide the code you use to | > create this dimension? I will try to reproduce the issue on my side. | | > Best Regards, | | > Peter Yang | > MCSE2000/2003, MCSA, MCDBA | > Microsoft Online Partner Support | | > When responding to posts, please "Reply to Group" via your newsreader so | > that others may learn and benefit from your issue. | | > ================================================== === | | | | > This posting is provided "AS IS" with no warranties, and confers no rights. | | > -------------------- | > | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | > | thread-index: AcXpurjdfK9S3nt4QWqOIGGNXghepw== | > | X-WBNR-Posting-Host: 203.202.23.100 | > | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | > | Subject: AMO Example for DegenerateMeasureGroupDimension | > | Date: Tue, 15 Nov 2005 00:01:02 -0800 | > | Lines: 11 | > | Message-ID: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com | > | MIME-Version: 1.0 | > | Content-Type: text/plain; | > | charset="Utf-8" | > | Content-Transfer-Encoding: 7bit | > | X-Newsreader: Microsoft CDO for Windows 2000 | > | Content-Class: urn:content-classes:message | > | Importance: normal | > | Priority: normal | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | > | Newsgroups: microsoft.public.sqlserver.olap | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64475 | > | X-Tomcat-NG: microsoft.public.sqlserver.olap | > | | > | I'm trying to add a measure group dimension with a relationship type of | > fact. | > | It looks like this is a | > | DegenerateMeasureGroupDimension | > | | > | I've added it with AMO and the results look OK. | > | It doesn't show up the same was as a manually created one in the cube | > | dimension usage panel. | > | It's saying "a fact dimension has been created in a way the user | > interface | > | does not support". | > | | > | Is there an AMO Example for DegenerateMeasureGroupDimension | > | | | | |
#7
| |||
| |||
|
|
X-Tomcat-ID: 98719403 References: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com NFfgbfl6FHA.832 (AT) TK2MSFTNGXA02 (DOT) phx.gbl |
|
MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: petery (AT) online (DOT) microsoft.com (Peter Yang [MSFT]) Organization: Microsoft Date: Mon, 21 Nov 2005 06:27:16 GMT Subject: RE: AMO Example for DegenerateMeasureGroupDimension X-Tomcat-NG: microsoft.public.sqlserver.olap Message-ID: <cbdfkSm7FHA.128 (AT) TK2MSFTNGXA02 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.olap Lines: 220 Path: TK2MSFTNGXA02.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64677 NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122 Hi, Thank you for your patience. Based on the feedback from product team. This error message "a fact dimension has been created in a way the user interface does not support".happens when the table of the dimension is not the same with the dimension of the measure group, or when the granularity attribute is not the key attribute of the dimension. You may want to check this to see if it helps. Have a great day! Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | thread-index: AcXr5ybsuzSplOzQREefbpCHCc+uKA== | X-WBNR-Posting-Host: 203.202.23.100 | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | References: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com NFfgbfl6FHA.832 (AT) TK2MSFTNGXA02 (DOT) phx.gbl 4FCCCDA1-6BCC-40B0-A4A5-0C270599BB1F...soft (DOT) com nMKiiS26FHA.832 (AT) TK2MSFTNGXA02 (DOT) phx.gbl | Subject: RE: AMO Example for DegenerateMeasureGroupDimension | Date: Thu, 17 Nov 2005 18:24:07 -0800 | Lines: 170 | Message-ID: <2B911DF7-36E8-4521-BC24-E97322D7AE44 (AT) microsoft (DOT) com | MIME-Version: 1.0 | Content-Type: text/plain; | charset="Utf-8" | Content-Transfer-Encoding: 7bit | X-Newsreader: Microsoft CDO for Windows 2000 | Content-Class: urn:content-classes:message | Importance: normal | Priority: normal | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | Newsgroups: microsoft.public.sqlserver.olap | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64607 | X-Tomcat-NG: microsoft.public.sqlserver.olap | | Hi, | | Did you mean | right-click on right-click on the measure group? | If so the XML looks the same for the manually created | DegenerateMeasureGroupDimension and the one generated through AMO. I assume | this means it works OK (looks like it is) but Business Intelligence | Development Studio isn't handling something created with AMO? | | Thanks | | "Peter Yang [MSFT]" wrote: | | > Hi, | | > I was not able to use the code to createa Degenerate Measure Group | > Dimension at present. I will perform some more research and get back ASAP. | | > Also, I suggest that you right click the manully created fact | > dimension->Script demension as->Create to->New query editor Window and | > check attributes of the dimension you need. Thanks. | | > Regards, | | > Peter Yang | > MCSE2000/2003, MCSA, MCDBA | > Microsoft Online Partner Support | | > When responding to posts, please "Reply to Group" via your newsreader so | > that others may learn and benefit from your issue. | | > ================================================== === | | | > This posting is provided "AS IS" with no warranties, and confers no rights. | | > -------------------- | > | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | > | thread-index: AcXqf9Xpt84enCBHTCeJF49+/4duIw== | > | X-WBNR-Posting-Host: 203.202.23.100 | > | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | > | References: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com | > <NFfgbfl6FHA.832 (AT) TK2MSFTNGXA02 (DOT) phx.gbl | > | Subject: RE: AMO Example for DegenerateMeasureGroupDimension | > | Date: Tue, 15 Nov 2005 23:32:02 -0800 | > | Lines: 99 | > | Message-ID: <4FCCCDA1-6BCC-40B0-A4A5-0C270599BB1F (AT) microsoft (DOT) com | > | MIME-Version: 1.0 | > | Content-Type: text/plain; | > | charset="Utf-8" | > | Content-Transfer-Encoding: 7bit | > | X-Newsreader: Microsoft CDO for Windows 2000 | > | Content-Class: urn:content-classes:message | > | Importance: normal | > | Priority: normal | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | > | Newsgroups: microsoft.public.sqlserver.olap | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64525 | > | X-Tomcat-NG: microsoft.public.sqlserver.olap | > | | > | Hi, | > | | > | it's generic code (driven for metadata stored in tables) | > | Let me know if the following isn't enough | > | | > | 'Dimension may have already been added when processing another | > | measure group | > | 'If the dimension is already there use it | > | Try | > | | > | objCubeDim = objCube.Dimensions.FindByName(strDimName) | > | If objCubeDim Is Nothing Then | > | 'Add Dimension to the Cube | > | objCubeDim = objCube.Dimensions.Add(objDim.ID) | > | objCubeDim.Name = strDimName | > | End If | > | Catch ex As Exception | > | FlagError("Failed CreateCubeDimension. Can't Add " & strDim, | > "Y") | > | Return | > | End Try | > | Try | > | ' Have to create appropriate object based on relationship type | > | If strRelationshipType = "Fact" Then | > | 'Fact relationship so use DegenerateMeasureGroupDimension | > | Dim objMGFactDim As New DegenerateMeasureGroupDimension | > | objMGFactDim.CubeDimensionID = objCubeDim.ID | > | ' add to the measure group | > | objMeasureGroup.Dimensions.Add(objMGFactDim) | > | objMGA = | > objMGFactDim.Attributes.Add(objDim.KeyAttribute.ID ) | > | objMGA.Type = MeasureGroupAttributeType.Granularity | > | 'Add Key | > | objMGA.KeyColumns.Add(strMeasureGroupTable, | > | strMeasureGroupKey, OleDbType.WChar) | > | Else | > | | > | | > | "Peter Yang [MSFT]" wrote: | > | | > | > Hi, | > | | > | > Currently I did not find and sample code for | > | > DegenerateMeasureGroupDimension class. Will you provide the code you | > use to | > | > create this dimension? I will try to reproduce the issue on my side. | > | | > | > Best Regards, | > | | > | > Peter Yang | > | > MCSE2000/2003, MCSA, MCDBA | > | > Microsoft Online Partner Support | > | | > | > When responding to posts, please "Reply to Group" via your newsreader | > so | > | > that others may learn and benefit from your issue. | > | | > | > ================================================== === | > | | > | | > | | > | > This posting is provided "AS IS" with no warranties, and confers no | > rights. | > | | > | > -------------------- | > | > | Thread-Topic: AMO Example for DegenerateMeasureGroupDimension | > | > | thread-index: AcXpurjdfK9S3nt4QWqOIGGNXghepw== | > | > | X-WBNR-Posting-Host: 203.202.23.100 | > | > | From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam | > | > | Subject: AMO Example for DegenerateMeasureGroupDimension | > | > | Date: Tue, 15 Nov 2005 00:01:02 -0800 | > | > | Lines: 11 | > | > | Message-ID: <74386462-146A-477A-8022-0A01FCB9AF53 (AT) microsoft (DOT) com | > | > | MIME-Version: 1.0 | > | > | Content-Type: text/plain; | > | > | charset="Utf-8" | > | > | Content-Transfer-Encoding: 7bit | > | > | X-Newsreader: Microsoft CDO for Windows 2000 | > | > | Content-Class: urn:content-classes:message | > | > | Importance: normal | > | > | Priority: normal | > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 | > | > | Newsgroups: microsoft.public.sqlserver.olap | > | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 | > | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl | > | > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.sqlserver.olap:64475 | > | > | X-Tomcat-NG: microsoft.public.sqlserver.olap | > | > | | > | > | I'm trying to add a measure group dimension with a relationship type | > of | > | > fact. | > | > | It looks like this is a | > | > | DegenerateMeasureGroupDimension | > | > | | > | > | I've added it with AMO and the results look OK. | > | > | It doesn't show up the same was as a manually created one in the cube | > | > | dimension usage panel. | > | > | It's saying "a fact dimension has been created in a way the user | > | > interface | > | > | does not support". | > | > | | > | > | Is there an AMO Example for DegenerateMeasureGroupDimension | > | > | | > | | > | | > | | | | |
![]() |
| Thread Tools | |
| Display Modes | |
| |