如果有办法将SSAS OLAP多维数据集反向工程回原始的关系表示,我就会徘徊。 这样的事情有可能吗?
答案 0 :(得分:1)
我能够在我的Sql Server上设置链接服务器,然后使用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]) ')