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
TKBlade
Frequent Visitor

Use a column A to search word text in colum B, if contains text, return column C

Hello good day
I'm trying something similar to the Procx function, to fill a column

I have this Table1:

Screenshot_44.png

 

And this Table2:
Screenshot_43.png

 

I'm want to use this Table2 as a reference table and use the words of Column1 to search in Table1 Column called [Descrição]

So, if column [Descrição], contains text of [Column1]

I want to return [Column2] values in Column of table1 called [Caracteristicas_1]

Is possible to do This with DAX or M language?

Example

Table1

CódigoDescriçãoStrong HATituloStrong HFP1DescriçãoPBP2bCaracteristicasNegrito p2Caracteristicas_1
108077Kit Festa Flamengo - Festcolor<h3><strong>Kit Festa Flamengo - Festcolor </strong></h3><br><p1>Ipsum! Lore ipsum <strong>Festa Flamengo</strong> lore ipsum</p><br><p2><b>Características</b></p> 
100357Toalha De Mesa Festa Flamengo - 01 unidade - Festcolor<h3><strong>Toalha De Mesa Festa Flamengo - 01 unidade - Festcolor </strong></h3><br><p1>Ipsum! Lore ipsum <strong>Festa Flamengo</strong> lore ipsum</p><br><p2><b>Características</b></p> 
100362Vela Emblema Festa Flamengo - 1 unidade - Festcolor<h3><strong>Vela Emblema Festa Flamengo - 1 unidade - Festcolor</strong></h3><br><p1>Ipsum! Lore ipsum <strong>Festa Flamengo</strong> lore ipsum</p><br><p2><b>Características</b></p> 


Table2

Column1Column2
Kit Festa<p>Papel Cartão</p><p>O kit é composto por:</p><p>04 unidades de quadros decorativos - 01 pacote;<br />
Vela<p>- Parafina;<br>- Papel adesivado<br>Quantidade:<br>-Pacote com 01 unidade</p><br>
Toalha De Mesa<p><b>Características:</b><br />-Plastico Polietileno</p><p><b>Medidas:</b><br />


Table1 gonna be:

CódigoDescriçãoStrong HATituloStrong HFP1DescriçãoPBP2bCaracteristicasNegrito p2Caracteristicas_1
108077Kit Festa Flamengo - Festcolor<h3><strong>Kit Festa Flamengo - Festcolor </strong></h3><br><p1>Ipsum! Lore ipsum <strong>Festa Flamengo</strong> lore ipsum</p><br><p2><b>Características</b></p> <p>Papel Cartão</p><p>O kit é composto por:</p><p>04 unidades de quadros decorativos - 01 pacote;<br />
100362Vela Emblema Festa Flamengo - 1 unidade - Festcolor<h3><strong>Vela Emblema Festa Flamengo - 1 unidade - Festcolor </strong></h3><br><p1>Ipsum! Lore ipsum <strong>Festa Flamengo</strong> lore ipsum</p><br><p2><b>Características <p>- Parafina;<br>- Papel adesivado<br>Quantidade:<br>-Pacote com 01 unidade</p><br>
100357Toalha De Mesa Festa Flamengo - 01 unidade - Festcolor<h3><strong>Toalha De Mesa Festa Flamengo - 01 unidade - Festcolor </strong></h3><br><p1>Ipsum! Lore ipsum <strong>Festa Flamengo</strong> lore ipsum</p><br><p2><b>Características</b></p> <p><b>Características:</b><br />-Plastico Polietileno</p><p><b>Medidas:</b><br />



A second thing is:
In Table1 i have a column called [Descrição_1] with cell text similar to "Ipsum! Lore ipsum <strong>Festa Flamengo</strong> lore ipsum"

Is possible search and replace the text of Column [Descrição_1] using the word "Festa" as reference based on column 1 [Descrição]? Just some words

Example: 

CódigoDescriçãoStrong HATituloStrong HFP1Descrição_1
108077Kit Festa Santos - Festcolor<h3><strong>Kit Festa Santos - Festcolor </strong></h3><br><p1>Ipsum! Lore ipsum <strong>Festa Flamengo</strong> lore ipsum



And they gona be this:

CódigoDescriçãoStrong HATituloStrong HFP1Descrição_1
108077Kit Festa Santos - Festcolor<h3><strong>Kit Festa Santos - Festcolor </strong></h3><br><p1>Ipsum! Lore ipsum <strong>Festa Santos</strong> lore ipsum

 

Thanks for any help

I see some topics about If text.contains e DAX vlookup, but I don't know if it's possible to use 4-column vlookup this way
And I didn't find an alternative to know if I can replace the text as in the second case
Any suggestion?

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

@TKBlade ,

Check if this link helps.

https://community.powerbi.com/t5/Desktop/Using-Power-M-to-return-a-value-based-upon-a-partial-match/...



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
Anonymous
Not applicable

The solution isn't very helpful in this case, I'm still looking for the solution to this problem on this forum.

camargos88
Community Champion
Community Champion

@TKBlade ,

Check if this link helps.

https://community.powerbi.com/t5/Desktop/Using-Power-M-to-return-a-value-based-upon-a-partial-match/...



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



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.