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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Manasi25
Helper II
Helper II

filter table which does not contain specific text

Hello 
I need to filter my table with quick measure by DAX which does not contain specific string. 

I calculated it with below formula , but it does not worked.

Please help ! Kinldy respond !

COUNTROWS(FILTER('PTS [Short Description]',not(CONTAINSSTRING('PTS [Short Description]',"GMI" )) &&
not(CONTAINSSTRING('PTS [Short Description]',"PTD")) &&
not(CONTAINSSTRING('PTS [Short Description]',"UTILITIES")) &&
not(CONTAINSSTRING('PTS [Short Description]',"IBM")) &&
not(CONTAINSSTRING('PTS [Short Description]',"CV")) &&
not(CONTAINSSTRING('PTS [Short Description]',"UBIX")) &&
not(CONTAINSSTRING('PTS'[Short Description],"FCD"))
not(CONTAINSSTRING('PTS'[Description],"MSGW")))

1 ACCEPTED SOLUTION

Hi @Manasi25  You need to remove closing brackets in filter function. See the red mark in the given image:

shafiz_p_0-1723542952937.png

 

 

Hope this helps!!

View solution in original post

4 REPLIES 4
Thejeswar
Super User
Super User

Hi @Manasi25 ,

In the DAX that you shared, there is a bracket missing at the end. Not sure if it is something missed during copy.

COUNTROWS(FILTER('PTS [Short Description]',not(CONTAINSSTRING('PTS [Short Description]',"GMI" )) &&
not(CONTAINSSTRING('PTS [Short Description]',"PTD")) &&
not(CONTAINSSTRING('PTS [Short Description]',"UTILITIES")) &&
not(CONTAINSSTRING('PTS [Short Description]',"IBM")) &&
not(CONTAINSSTRING('PTS [Short Description]',"CV")) &&
not(CONTAINSSTRING('PTS [Short Description]',"UBIX")) &&
not(CONTAINSSTRING('PTS'[Short Description],"FCD"))
not(CONTAINSSTRING('PTS'[Description],"MSGW"))))
ryan_mayu
Super User
Super User

@Manasi25 

i think the parameter after  FILTER should be a table.

maybe try to change FILTER('PTS [Short Description]'  to FILTER(PTS





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi@ryan_mayu

I did this too .PFB.

Manasi25_0-1723542288738.png

 




Hi @Manasi25  You need to remove closing brackets in filter function. See the red mark in the given image:

shafiz_p_0-1723542952937.png

 

 

Hope this helps!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors