Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Copy value from one table to another on matching IDs

I have a header and detail table that are linked by an unique ID. Both tables are imported from SQL server management studio. The header table has a column which I would like to add to the detail tab...
  • ntaylo06's avatar
    ntaylo06
    7 years ago

    Gotcha, this one is pretty straightforward. I am using names that are different than yours for clarity, but this is how you will do it:

    1. Create a relationship between 'Header_Table'[ID_Number] and 'Detail_Table'[ID_Number]

    2. Add a column to 'Detail_Table' with the formula ID Number = RELATED('Header_Table'[Type])

     

    Let me know if you have any questions.