Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

New Column

I have two tables that I appended into a new table - call it Employees. I have a third table called Dept with columns named Dept Id, Department, and Department Sub. The Dept Id column is in the new appended table. I need to add the Department and Department Sub columns into the Employees table using the Dept Id column. Do I create a new column in the Employees table and if so, how? Sorry I am new to the analyst field and new to Power BI. I'm double noobi.

  • I assume that the Dept Id's in the Dept table are all unique. 

     

    If that is the case you create a relationship between the two tables. Then you create a calculated column in employees with simply:

     

    Column = 'Dept'[Department]

    Column2 = 'Dept'[Department Sub]

2 Replies

  • tex628's avatar
    tex628
    Community Champion

    I assume that the Dept Id's in the Dept table are all unique. 

     

    If that is the case you create a relationship between the two tables. Then you create a calculated column in employees with simply:

     

    Column = 'Dept'[Department]

    Column2 = 'Dept'[Department Sub]