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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.