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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

new column from conditional expression of other column

Hi,

 

In Power BI Desktop,

 

I have this table Table 1:

power bi help.JPG

 I want to create a new column for Parent Name.

 

I tried creating another table Table 2:

 

power bi 2.JPG

I want to do a SQL query something like

 

Select Name

From Table 2

Where Table 2.ID = Table 1.Parent ID

 

to get a new column for Parent Name.

 

How can I do that? or achieve this any other way?

Thanks

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

I think you can do a simple LOOKUP within the same table

 

Try Adding this calculated column

 

Parent Name=LOOKUPVALUE([Name],[ID],[Parent ID])

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

I think you can do a simple LOOKUP within the same table

 

Try Adding this calculated column

 

Parent Name=LOOKUPVALUE([Name],[ID],[Parent ID])
Anonymous
Not applicable

OMG, I cannot thank you enough. That solved my problem instantly. I had been searching for this kind of function for hours.

Thanks so much.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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