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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Power BI Self Join

Hello Team,

 

I want to extract the manager names from the same table.

 

There is the employee table 

Employee idManager ID emp FnameEmp Lname
    

 

All mangerid are in employeeid coloumn but not all employee are managers.

I want to pull the Fname and Lname of the managers by looking up the value in emp id colomn

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a calculated table using dax

Table 2 = SELECTCOLUMNS(FILTER('Table',[Manager ID]<>BLANK()),"Fname",[emp Fname],"Lname",[Emp Lname])

5.png

Check the details from the attachment.

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Where do you want the extraction to happen - a new table or a visual.  Should it be a calculated column or a measure?  Care to share more details????


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a calculated table using dax

Table 2 = SELECTCOLUMNS(FILTER('Table',[Manager ID]<>BLANK()),"Fname",[emp Fname],"Lname",[Emp Lname])

5.png

Check the details from the attachment.

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AlexisOlson
Super User
Super User

Are you looking for a DAX solution or trying to do this in the query editor?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.