Share via

Merge Dim Table

MushiMushi 81 Reputation points
2021-05-12T02:59:16.203+00:00

I have 2 dim table from different data source, can we merge it using MDX query or do we have other way to do it?

SQL Server Analysis Services
SQL Server Analysis Services

A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.

0 comments No comments

Answer accepted by question author

Olaf Helper 47,621 Reputation points
2021-05-12T06:15:01.403+00:00

A vague question.
No, you can not merge it on MDX side, but in the relational data base. Create a view and merge the base table using UNION ALL, like

CREATE VIEW dbo.v_MergeDim
AS
    SELECT Col1, COL2, Col3
    FROM dbo.Dimension1

    UNION ALL

    SELECT Col1, COL2, Col3
    FROM dbo.Dimension2;

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Lukas Yu -MSFT 5,826 Reputation points
    2021-05-12T07:42:13.283+00:00

    No, we could not merge two dimensions. If you want to merge two tables, you would need to in DSV level to create a new table which unions two table as Olaf has written. In the existing cube, if you have had two dimensions we could not merge them.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.