Forum Discussion
ahhk2000
Nov 10, 2022Copper Contributor
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 ...
- Nov 11, 2022
Such a measure could like something like this:
=SUMX(AllResults,IF(CONTAINSSTRING ([Comment], "forum"),1,0))
Riny_van_Eekelen
Nov 11, 2022Platinum Contributor
Such a measure could like something like this:
=SUMX(AllResults,IF(CONTAINSSTRING ([Comment], "forum"),1,0))
ahhk2000
Nov 11, 2022Copper Contributor
Thanks very much. This works perfectly... unfortunately the measure doesn't seem to exist in Excel 2016, but I got it working in Power BI.