有没有办法将数据从 SSAS 维度表示转换回关系表示?
is there a way to convert data from SSAS dimensional representation back into relational representation?
我在徘徊,是否有办法将 SSAS OLAP 多维数据集反向工程回其原始关系表示。
这样的事情可能吗?
我能够在我的 Sql 服务器上设置链接服务器,然后使用 OpenQuery 获取数据。它有点难看,但你可以像下面那样做:
SELECT "[Dimension Name].[Hierarchy Name].[Department Name].[MEMBER_CAPTION]" as Department,
round("[Measures].[Some Calculation]",3) as Value,
'Value_Descr' as Value_Descr
FROM OPENQUERY(SSAS_Link,' SELECT NON EMPTY { [Measures].[Some Calculation] } ON COLUMNS
,NON EMPTY {([Date Dimension].[Hierarchy].[Fiscal Year Code].ALLMEMBERS * [Dimension Name].[Hierarchy Name].[Lowest Hierarchy Level Field].ALLMEMBERS) } DIMENSION PROPERTIES MEMBER_CAPTION
,MEMBER_UNIQUE_NAME ON ROWS FROM (
SELECT ({ [Dimension Name].[Field to Filter].& [Key of Field to filer] }) ON COLUMNS
FROM (SELECT ([Fiscal Week Code - Last Week]) ON COLUMNS FROM [Cube Name]) )
WHERE ([Dimension Name].[Field to Filter].& [Key of Field to filer]) ')
我在徘徊,是否有办法将 SSAS OLAP 多维数据集反向工程回其原始关系表示。 这样的事情可能吗?
我能够在我的 Sql 服务器上设置链接服务器,然后使用 OpenQuery 获取数据。它有点难看,但你可以像下面那样做:
SELECT "[Dimension Name].[Hierarchy Name].[Department Name].[MEMBER_CAPTION]" as Department,
round("[Measures].[Some Calculation]",3) as Value,
'Value_Descr' as Value_Descr
FROM OPENQUERY(SSAS_Link,' SELECT NON EMPTY { [Measures].[Some Calculation] } ON COLUMNS
,NON EMPTY {([Date Dimension].[Hierarchy].[Fiscal Year Code].ALLMEMBERS * [Dimension Name].[Hierarchy Name].[Lowest Hierarchy Level Field].ALLMEMBERS) } DIMENSION PROPERTIES MEMBER_CAPTION
,MEMBER_UNIQUE_NAME ON ROWS FROM (
SELECT ({ [Dimension Name].[Field to Filter].& [Key of Field to filer] }) ON COLUMNS
FROM (SELECT ([Fiscal Week Code - Last Week]) ON COLUMNS FROM [Cube Name]) )
WHERE ([Dimension Name].[Field to Filter].& [Key of Field to filer]) ')