Forum Discussion

Rjesak's avatar
Rjesak
Helper I
6 years ago
Solved

filter and create relationships before loading data

I think this is a very basic question but I've been searching and not found an answer so I'm going to try.   We have two rather large tables that are connected by a 1:many relationship through a un...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Rjesak ,

     

    Do you have mean you want to create two tables in power bi finally?

    The problem is that you want to limit the parent table and limit the supported table(based on parent table), right?

    And your query get one table with all duplicated records after using the "parent" limitation.

     

    If yes, I think you can create the parent table by:

    select xxx

    from parent_table

    where limitation

     

    and for support table:

    select xx

    from support table

    inner join parent_table

    where parent_limitation

     

    If I'm wrong, please show me what you want more clearly, if you have sample data that will be better.

     

    Thanks.

    Aiolos Zhao