Forum Discussion

wisdoms's avatar
wisdoms
New Member
3 years ago
Solved

Need for Merge Query expertise

Hi all,    I'm struggling with a PBI issue that comes from sourced database (that can't be edited on purpose). This is a simplified sketch of my Model View: Basically I need to list all Feat...
  • ChielFaber's avatar
    3 years ago

    While it's difficult to say exactly I think to following might over a solution:

     

    In the powerquery editor start with the table Story. Through the user interface select merge as new and merge the Story table with the Mapping table using a left outer join. This combines all the available story id's in the story table with the corresponding story_id in the mapping table. 

     

    The next step would be to merge this newly created table with the features table. You could do this using a normal merge (again through the UI). This merges the table in the same query code or you could again us Merge queries as new. When you use the last function you could consider disabling the query load of the first merge.

     

    When you use another left join between the newly created table and the features table you get al the story_id out of the story table with the all the corresponding feature_id's and Label names.

     

    If this isn't the solution could you then provide some dummy data to further explain the tables content?