Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Multiple table relationship

Hi,
I have a common excel like below

I tried to concatenate with 2 other tables having same columns

I have tried with all relationship types but not getting what I need

Output

There are 2 columns showing for each table as highlighted but I want as single column so that there wont be any blank. Is it possible? Thanks in advance

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data.  

    (2) We can create a SLA table.

    SLA Table = UNION(DISTINCT('calculated table'[Value]),DISTINCT('Table'[SLA]))

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    You can create a Dim SLA table where the SLA column contains all of the SLAs, and then use this table as a 1-terminal table to establish a 1-to-many modeling relationship with the other three tables, and then place the fields from the Dim SLA table on the visual object.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

    • Anonymous's avatar
      Anonymous
      Not applicable

      We are unable to put all SLAs in a single table as one table is calculated table from PBI. so there is no edit query option for that. Not sure how to append data with another SLA table data

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous ,

         

        According to your description, here are my steps you can follow as a solution.

        (1) This is my test data.  

        (2) We can create a SLA table.

        SLA Table = UNION(DISTINCT('calculated table'[Value]),DISTINCT('Table'[SLA]))

        (3) Then the result is as follows.

        Best Regards,

        Neeko Tang

        If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

  • The column headers have to all be the same, and it looks like the two highlighted columns are "SLA%" and "SLA %" with the second having an extra space compared to the first. If you remove the space by renaming the column in Power Query, that should fix the issue. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Still same