Forum Discussion

Bergh's avatar
Bergh
Icon for Helper II rankHelper II
3 years ago

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

 

 

2 Replies

  • NaveenGandhi's avatar
    NaveenGandhi
    Icon for Memorable Member rankMemorable Member

    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.

     

     

    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] )
    )

     

     

    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]
    )

     

    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.