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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

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] )
)

✔ Answered? Mark as solution

Muhammad Hasnain | Super User • Fabric • Power BI • Data Engineering

Let's connect on LinkedIn

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] )
)

✔ Answered? Mark as solution

Muhammad Hasnain | Super User • Fabric • Power BI • Data Engineering

Let's connect on LinkedIn
Anonymous
Not applicable

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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.