Forum Discussion

John_YZ's avatar
John_YZ
New Member
8 years ago
Solved

Create dimension table from multiple fact tables

Hi I'm trying to create a dimension table for ID and Description from two different fact table. TABLE1 and TABLE2 have several columns but I want to use only two, then remove duplicates for ID code...
  • Greg_Deckler's avatar
    8 years ago

    I think you are using DAX when you should probably be  using M (Power Query). Essentially, what I would suggest would be to create two new queries that pull from the exact same data sources but only includes the two rows you care about. Then, create an Append query that appends these together. Then, in this Append query, do a remove duplicates on your ID column. Disable data load and refresh on your two queries that are part of your Append query but leave data load and refresh enabled for your Append query. You should then have what you want, a table with distinct ID's.