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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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