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
Bergh
Helper II
Helper II

Compare text in columns

Hi!
I would like to be able to search on an article number. Can you then do so that you look in Description and compare in Table 2 Description and show the article numbers that contain similar words in description. Table 1 ICL and Hardware, Table 2 finds ICL and Hardware. Then I want the new partnumber 56789 ,98754 & 22654 to appear

 

Bergh_0-1685427307599.png

 

2 REPLIES 2
NaveenGandhi
Super User
Super User

Hello @Bergh 

You can play around with fuzzy match in merge queries to bring the table 1 description to table 2 as below. Refer my fuzzy match settings from below SS.

 

NaveenGandhi_0-1685432217741.png

NaveenGandhi_1-1685432239111.png

 

Now you can close and apply, use the below two DAX.

 

To be created as column in table 2:

Concate Parts =
CALCULATE (
CONCATENATEX (
'Part number 2',
'Part number 2'[New Part Numbre],
", ",
'Part number 2'[Table 1 Description], ASC
),
ALLEXCEPT ( 'Part number 2', 'Part number 2'[Table 1 Description] )
)
NaveenGandhi_2-1685432511859.png

 

 

To be created as column in table 1:

New Part Number =
LOOKUPVALUE (
'Part number 2'[Concate Parts],
'Part Number 2'[Table 1 Description], 'Part number 1'[Description]
)
NaveenGandhi_3-1685432573808.png

 

Let me know if this helps.

 

If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

 

 
pratyashasamal
Super User
Super User

Hi @Bergh ,
Please refer to this link :-
https://www.spguides.com/power-bi-compares-two-columns-in-different-tables/
Hope it is helpful .
Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





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.