Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mgg
Helper I
Helper I

count filtered text line

Hi All,

I need to count the lines with specific word in a column containgingdiferents words.

I though to do something like: 
data1 = countx ( filter( table, table[column] = "*wordtofind*"), [column to count])

 

This measure working only if the wordtofind is the only value in the cell.... but I wanto to count also if part of a sentence or part of long word.

 

May help me?

Thx

1 ACCEPTED SOLUTION
vojtechsima
Memorable Member
Memorable Member

Hi, @Mgg 
use something like this:

 

Activated = COUNTROWS(FILTER('Table', CONTAINSSTRING('Table'[Company], "See")))

 

This will look for "See" in Column "Company" in table "Table".

View solution in original post

3 REPLIES 3
vojtechsima
Memorable Member
Memorable Member

Hi, @Mgg 
use something like this:

 

Activated = COUNTROWS(FILTER('Table', CONTAINSSTRING('Table'[Company], "See")))

 

This will look for "See" in Column "Company" in table "Table".

I'm not sure is exactly what I need.

Looking in the following table I need to count the number of Prj if in column type there is the word see ...also if combine with other.

Mgg_0-1653325159238.png

The result should be 3....so the yellow onr 🙂
Thx

Hi, @Mgg ,

CALCULATE(
	COUNTROWS('Table'),
	CONTAINSSTRING('Table'[Company], "See") && NOT (ISBLANK('Table'[Prj]))
)


 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.