Forum Discussion

bolabuga's avatar
bolabuga
Helper V
9 years ago
Solved

Using count with search text in column.

Hello everyone,    I would like helping for counting a specific amount of services in a table. i will list the sample.   SERVICE CODE OBS 2652016000002 102023 XXXXXXXXXXXXXXXXXXX Alt.TL: de A ...
  • Greg_Deckler's avatar
    9 years ago

    You could do it like this:

     

    Custom Column:

    ContainsText = SEARCH("Alt.TL: de A p/ B",[OBS],1,0)

    Measure:

    MyCount = CALCULATE(COUNTROWS(Codes),FILTER(Codes,Codes[CODE]=102023 && Codes[ContainsText]<>0))