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
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
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.

Top Solution Authors