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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

connect two tables with some common string

Hi all,

 

I have two tables in power bi:

1: With Projects Names

2: With URL (which includes project names) 

For the 2 table there are many different URL's with same project name.

I want to somehow connect these two table so that I can use table 1 as a visual filter(drop down).

For ex. 

Screenshot_42.png

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

To achieve your requirement, you can use SEARCH() function to match two tables. Please refer to following calculated column with DAX expression:

 

Key Column =
CALCULATE (
    IF (
        COUNTROWS ( VALUES ( 'Project Names'[Project Names] ) ) > 1,
        "More than 1 Project Names",
        VALUES ( 'Project Names'[Project Names] )
    ),
    FILTER (
        ALL ( 'Project Names'[Project Names] ),
        SEARCH ( 'Project Names'[Project Names], 'URL'[URL], 1, 0 ) <> 0
    )
)

12.PNG13.PNG

 

Thanks,
Xi Jin.

View solution in original post

6 REPLIES 6
rocky09
Solution Sage
Solution Sage

Please provide sample data of the two tables.

Anonymous
Not applicable

Please refer to the image attached.

@Anonymous

you have mentioned in your post that you have two tables? I want to see both tables. So, i can provide a solution. Without your data structure, it is hard to guess.

Anonymous
Not applicable

Hi  @rocky09,

 

I have two tables, one has URL's and the other has some project names which are present in the URL, and there is nothing else in thse two tables which is relevant.

Screenshot_43.png

 

 

Hi @Anonymous,

 

To achieve your requirement, you can use SEARCH() function to match two tables. Please refer to following calculated column with DAX expression:

 

Key Column =
CALCULATE (
    IF (
        COUNTROWS ( VALUES ( 'Project Names'[Project Names] ) ) > 1,
        "More than 1 Project Names",
        VALUES ( 'Project Names'[Project Names] )
    ),
    FILTER (
        ALL ( 'Project Names'[Project Names] ),
        SEARCH ( 'Project Names'[Project Names], 'URL'[URL], 1, 0 ) <> 0
    )
)

12.PNG13.PNG

 

Thanks,
Xi Jin.

Anonymous
Not applicable

Hi @v-xjiin-msft, Thanks for the solution man. It works great.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors