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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

How Count cells with specific Text in certain column

Dears

 

AM trying to count cells with specific text inside it

 

i have project column and i want to count cells that contains specifc word which is "enhancement" inside this cell in spesific column

 

thanx

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , You can use

 

https://docs.microsoft.com/en-us/dax/containsstring-function-dax

 

calculate(count([Names]),CONTAINSSTRING([Names],"enhancement"))

 

or

https://docs.microsoft.com/en-us/dax/search-function-dax

https://docs.microsoft.com/en-us/dax/find-function-dax

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

mahoneypat
Microsoft Employee
Microsoft Employee

You can try this approach

 

Projects with Enhancement = COUNTROWS(Filter(Table, SEARCH("Enhancement", Table[Project], , 0)>0))

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

4 REPLIES 4
Anonymous
Not applicable

both solutions working for me

 

thanx 

 

mahoneypat
Microsoft Employee
Microsoft Employee

You can try this approach

 

Projects with Enhancement = COUNTROWS(Filter(Table, SEARCH("Enhancement", Table[Project], , 0)>0))

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks for the solution, But it count the header also?

amitchandak
Super User
Super User

@Anonymous , You can use

 

https://docs.microsoft.com/en-us/dax/containsstring-function-dax

 

calculate(count([Names]),CONTAINSSTRING([Names],"enhancement"))

 

or

https://docs.microsoft.com/en-us/dax/search-function-dax

https://docs.microsoft.com/en-us/dax/find-function-dax

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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