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
alexcatala
Helper IV
Helper IV

Exclude rows

Hi, I am trying to filter a column excluding 2 job titles, but it doesn't work.

 

I have tried in the Query Editor with the main filter and setting "does not contain", but doesn't work.

 

Any other suggestion to exclude specific rows named: EXample: Assitant Manager or Supervisor.

 

Thanks

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @alexcatala 

If you start with data like this in the Query Editor

job-titles.png

 

Click on the filter button on the Job Title column and uncheck the jobs you want to remove and click OK

filter-jobs.png

 

Leaving you with this

filtered-jobs.png

 

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

7 REPLIES 7
v-easonf-msft
Community Support
Community Support

Hi, @alexcatala 

Maybe you just need to change the  filter conditions to "do not end with".

107.png

Best Regards,
Community Support Team _ Eason

PhilipTreacy
Super User
Super User

Hi @alexcatala 

If you start with data like this in the Query Editor

job-titles.png

 

Click on the filter button on the Job Title column and uncheck the jobs you want to remove and click OK

filter-jobs.png

 

Leaving you with this

filtered-jobs.png

 

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @alexcatala 

Can you please copy/paste some sample data including what you want to filter out.

Regards

Phil.  



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


AlB
Community Champion
Community Champion

Hi @alexcatala 

How exactly did you try the "does not contain", with the AND or the OR?

Have you tried, on the filtering option in PQ, just to untick  Assitant Manager and  Supervisor?

IF you show some sample data we can probably work it out

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Cheers 

 

SU18_powerbi_badge

Hi @AlB 

 

I went into the Power Query and I have used does not contain " Assistant Manager" and " Supervisor".

 

The problem some of the jobs have also more text after "Assistant Manager" : Ex. Assistant Manager - London

amitchandak
Super User
Super User

@alexcatala , a measure to filter these two


measure =
calculate(countrows(Table), filter(Table, not(Table[job] in {"Assitant Manager","Supervisor"})))

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

Hi @amitchandak 

 

I am not trying to count the rows, I just want to remove these values and keep seeing the remaining as a text. Because are text values and we want to keep seeing what the main job title to be able to filter them.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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