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
prathmeshb27
Helper I
Helper I

Create new column with related fields from 2 tables (In Table view)

Hi, Table 1 contains Jobname column with X,Y,Z. I want to create another column Time in this table with related fields from other two tables matching this X,Y,Z. Table 2 contains time of X, Table 3 contains time of Y, Z. 

TABLE 1  Table 2  Table 3  Result Table should be like this
jobnameTime jobnameTime jobname  jobnameTime
X  X9:00 AM Y10:00 PM X9:00 AM
Y     Z11:00 AM Y10:00 PM
Z        Z11:00 AM
1 ACCEPTED SOLUTION
mh2587
Super User
Super User

--Try this
Time = 
IF (
    NOT ( ISBLANK ( LOOKUPVALUE ( Table2[Time], Table2[jobname], Table1[jobname] ) ) ),
    LOOKUPVALUE ( Table2[Time], Table2[jobname], Table1[jobname] ),
    LOOKUPVALUE ( Table3[Time], Table3[jobname], Table1[jobname] )
)

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



View solution in original post

2 REPLIES 2
mh2587
Super User
Super User

--Try this
Time = 
IF (
    NOT ( ISBLANK ( LOOKUPVALUE ( Table2[Time], Table2[jobname], Table1[jobname] ) ) ),
    LOOKUPVALUE ( Table2[Time], Table2[jobname], Table1[jobname] ),
    LOOKUPVALUE ( Table3[Time], Table3[jobname], Table1[jobname] )
)

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



It is not working for 4 tables. But working for 2 tables. For more than 3 tables? Can you show format?

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.