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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

match part of value only

Hi Experts, 

I have a challenge where I don't even know where to start.  
I need to create a measure (only measure) to;


Match the 2nd and 3rd characters in table 1[data 1], with the first 2 characters in table 2[data 2].   The result the value in table 3[data 3] 

 

TIA!! 

table 1 table 2 table 3
data 1 data 2 data 3
XTY TY XXXXXXX 4
FUY UY XXXXXX 5
YMN MN XXXX 6

 

3 REPLIES 3
az38
Community Champion
Community Champion

hi @Anonymous 

how is your table 3 is connected with other tables? Is there any relationships?

do not hesitate to give a kudo to useful posts and mark solutions as solution

 

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38    -  there is a relationship.  I do not own the data model so cannot check what the relationship is 😞  I know that makes it difficult.  

az38
Community Champion
Community Champion

@Anonymous 

maybe. just maybe. you could try smth like new column

Column = 
MIN(
SELECTCOLUMNS(
FILTER(ALL('Table 3'), SEARCH(MID('Table 1'[Data 1],2,2),'Table 2'[Data 2],,0)=1),
"Data 3",
'Table 3'[Data 3]
)
)

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.