cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
olab New Member
New Member

Lookup based on text starting with....

Hello,

For some time I have been working on a relation/lookup in PowerBI but have not been able to solve it. Now I'm askin the community for help.

 

I have two tables:

Team - Containing all maintenance teams and their responsible scope

 

Equipment - Containing all equipment.

 

In the equipment table I need to do a lookup to find the correct team based on the starting text of Team (Something like the LIKE function in SQL)

Can someone give me an idea on how to do this?

 

OlCapture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Lookup based on text starting with....

@olab

 

This calculated column works with your sample data

 

column =
CALCULATE (
    MAX ( Team[TeamID] ),
    FILTER ( Team, SEARCH ( [Key], [EquipmentID], 1, 0 ) > 0 )
)
Try my new Power BI game Cross the River

View solution in original post

1 REPLY 1
Super User
Super User

Re: Lookup based on text starting with....

@olab

 

This calculated column works with your sample data

 

column =
CALCULATE (
    MAX ( Team[TeamID] ),
    FILTER ( Team, SEARCH ( [Key], [EquipmentID], 1, 0 ) > 0 )
)
Try my new Power BI game Cross the River

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)