Forum Discussion

selpaqm's avatar
selpaqm
Helper V
6 years ago
Solved

Containstring takes ages

Hi,

 

i have a calculated column contains containstring. it works however each refresh take hours with more than 1000 rows. normally my table has more than 400k rows. so is there any way to speed it up with changing another think.

 

if (Countx (filter (Table2, CONTAINSSTRING (Table2 [ID], Table1 [ID])), Table2 [ID])> 0, "Yes", "No")

also you may find entire example on below link 

 

example 

6 Replies

    • selpaqm's avatar
      selpaqm
      Helper V

      Greg_Deckler  thanks for your suggestion. when i try to use search, I have get "The search Text provided to function 'SEARCH' could not be found in the given text." error.

      "minx(filter(table,search(" does not fit.

      • mwegener's avatar
        mwegener
        Most Valuable Professional

        Hi selpaqm ,

         

        I once created a Power Query prototype here. The merging between the two tables can possibly still be optimized.

        See attachement.