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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.