Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Managing Relationships

Hello,

 

I am not able to connect the Program columns below:

 

And: 

 

I get this message:

 

 

Any suggestions?

 

Thank you!

11 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Usually we create a bridge table to create a relationship between two tables:

    ProgramTable = 
    DISTINCT(
        UNION(
            SELECTCOLUMNS('WES - Scores', "Program", 'WES - Scores'[Program]),
            SELECTCOLUMNS('Respectful Environment', "Program", 'Respectful Environment'[Program])
        )
    )

    Many-to-many relationship guidance - Power BI | Microsoft Learn

    Then use the fields in the bridge table.

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you so much! It works. Do you know how I can "tidy up" these relationship? I am not sure how to move the boxes at the very top of the page (it doesn't show as they are all the way up). I highlighed in yellow:

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous ,

         

        Try clicking the Fit to page button in the bottom right corner of the page and dragging the table into place.

        Best Regards,
        Gao

        Community Support Team

  • Can you please explain why you have duplicate rows in the second table?

     

    What is your expected outcome?

  • Anonymous's avatar
    Anonymous
    Not applicable

    it's because we need the data for 2022 and 2024 and for many different program areas