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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
anz999
New Member

How can i join columns from two tables with relation using DAX query

Hi,

I'm trying to combine columns from two tables by applying a filter against table1 and retireve columns from the other table. Both tables have data model relationship setup. Below is the query I'm using to pull the columns from table2 but it seems to be pulling pulling all the rows instead of joining the tables. Is there any other way to join two tables like we do in Sql.

EVALUATE
SUMMARIZECOLUMNS(
table1[AzureAccountId],
table1[username],
table2[ScriptInsertedDt],
KEEPFILTERS( FILTER( ALL( table1[username] ), SEARCH( "search_string", table1[username], 1, 0 ) >= 1 ))
)
ORDER BY
table1[AzureAccountId] ASC,
table1[username] ASC,
table2[ScriptInsertedDt] ASC

1 REPLY 1
tamerj1
Super User
Super User

Hi @anz999 

what is the relationship between the two tables? Based on which column? Which if them is the one side and which is the many?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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