Creating relationships between 2 dimensions in ssas

Jason Yeung 66 Reputation points
2021-08-25T21:56:09.73+00:00

Hi,

I'm trying to create a relationship between 2 dimensions in analysis services. I found this link which tells me how to do this:
https://learn.microsoft.com/en-us/analysis-services/tabular-models/create-a-relationship-between-two-tables-ssas-tabular?view=asallproducts-allversions

I opened the project with Visual Studio (with SQL Server Data Tools installed), but I couldn't find the Model menu that the above link states. Below is a screenshot of what I currently see (I've masked out the table / dimension names):

126390-20210825-data-cubes.jpg

I was wondering if there's another way to create relationships between dimensions in SSAS? Is there a setting I need to change in order to make the Model menu appear (as per the link above). Thanks!

Sincerely,

Jason

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.
1,344 questions
{count} votes

Accepted answer
  1. Darren Gosbell 2,376 Reputation points
    2021-08-26T00:38:09.843+00:00

    SSAS supports 2 types of data models, Tabular and Multi-Dimensional. The article you have linked is for a Tabular model, the screen shot you have posted is for a multi-dimensional model.

    One way to create a new relationships in multi-dimensional you would just drag a column from one table and drop it onto the column you want to relate it to in the other table. From memory I think it's best to drag the column from the "many" side of the relationship and drop it onto the "one" side.


3 additional answers

Sort by: Most helpful
  1. CarrinWu-MSFT 6,891 Reputation points
    2021-08-26T01:25:53.807+00:00

    Hi @Jason Yeung ,

    Welcome to Microsoft Q&A!

    As dgosbell mentioned, you are using multidimensional model, there have some differences between tabular and multidimensional model, you could refer to this link to get some information about this two models. And also please refer to Defining Relationships Between Dimensions and Measure Groups to get the detail steps.

    Best regards,
    Carrin


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. CarrinWu-MSFT 6,891 Reputation points
    2021-08-30T03:14:06.703+00:00

    Hi @Jason Yeung ,

    it's possible to add dimensions to the Data Source View?

    No, you cannot add dimensions to data source view. A data source view (DSV) is an abstraction of a relational data source that becomes the basis of the cubes and dimensions you create in a multidimensional project. The purpose of a DSV is to give you control over the data structures used in your project, and to work independently of the underlying data sources (for example, the ability to rename or concatenate columns without directly modifying the original data source). Please refer to Data Source Views in Multidimensional Models.

    You could refer to Lesson 5: Defining Relationships Between Dimensions and Measure Groups to learn how to define relationship for different scenario.

    0 comments No comments

  3. Jason Yeung 66 Reputation points
    2021-09-01T00:22:53.337+00:00

    Thanks for your help, the both of you. Only 1 answer can be marked as accepted, but all the answers make sense.

    0 comments No comments

Your answer

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