Forum Discussion

ahhk2000's avatar
ahhk2000
Copper Contributor
Nov 10, 2022
Solved

Formula to count occurences of text string in DAX

I have the following formula to count the occurrences of the word "forum" in a column (L with Comment header).   =COUNTIF($L$2:$L$4000,”*forum*”)   It should count the word occuring in any part ...
  • Riny_van_Eekelen's avatar
    Nov 11, 2022

    ahhk2000 

    Such a measure could like something like this:

     

    =SUMX(AllResults,IF(CONTAINSSTRING ([Comment], "forum"),1,0))

Resources