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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PuddleRunna
Advocate I
Advocate I

Create new column, complete string with value from another table

Hi guys,

 

this one seems easy, but I'm not sure how to achieve it.

 

I have a dim table (Table2) with "SoftwarePackage" e.g.

Teams 1.1.2

Teams 2.2

Whiteboard 2.34

MS Project 2013

 

My main table regarding Software (Table1) uses "SoftwarePackageFullName" though, e.g.

Teams 1.0_DE 1.0

Teams 2.2_DE 1.0

Whiteboard 2.32_DE 1.3

MS Project 2013_DE 1.2

 

Now I'd like to create a custom column in table 2 that takes the string in SoftwarePackage, checks SoftwarePackageFullName and returns the full name.

 

Can someone point me in the right direction? Probably something with CONTAINSSTRING?

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@PuddleRunna 

Add the following New Column in Table 2 :

Full Name = 

MAXX(
FILTER(
    'Table--1',
    CONTAINSSTRING('Table--1'[SoftwarePackageFullName] , 'Table--2'[SoftwarePackage])
),
'Table--1'[SoftwarePackageFullName]
)

Fowmy_0-1623407857670.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
PuddleRunna
Advocate I
Advocate I

Awesome, thanks for the fast help 🙂

Fowmy
Super User
Super User

@PuddleRunna 

Add the following New Column in Table 2 :

Full Name = 

MAXX(
FILTER(
    'Table--1',
    CONTAINSSTRING('Table--1'[SoftwarePackageFullName] , 'Table--2'[SoftwarePackage])
),
'Table--1'[SoftwarePackageFullName]
)

Fowmy_0-1623407857670.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.