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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
oberkery
New Member

Getting useful data from another table

The file I am working with has data from one table with an ID number (ctp), then on another data set I have the same ID numbers (ID) with their location names(name). What I'm trying to do is have the locations be put on the original table next to their correlating ID numbers. I'm not sure how to get this to work in the power bi tables. I've tried dax expressions but haven't found and success. Feedback would be greatly appreciated.

 

This table has the dealID that I am trying get the location names for.

This is the original tableThis is the original table

 

This table has the (ID) numbers that correlate with the (ctp) numbers from the previous table, and I want to create a function that returns the names on the previous table.

This is the table that converts the ctp number to the locationThis is the table that converts the ctp number to the location

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Have you tried creating a calculated column using the LOOKUPVALUE function?

 

Location =LOOKUPVALUE(table2[address],table2[ID],table1[ctp])

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Have you tried creating a calculated column using the LOOKUPVALUE function?

 

Location =LOOKUPVALUE(table2[address],table2[ID],table1[ctp])

Worked Thanks!

Anonymous
Not applicable

@oberkery  Great! If you could mark my response as the solution, I'd appreciate it.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors