Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
datavis
Resolver I
Resolver I

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.

1 ACCEPTED SOLUTION
tex628
Community Champion
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]


Connect on LinkedIn

View solution in original post

2 REPLIES 2
tex628
Community Champion
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]


Connect on LinkedIn
v-juanli-msft
Community Support
Community Support

Helpful resources

Announcements
March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.