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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
SimuQuery
Frequent Visitor

Filter by Not In State

Hi,

 

I wonering how I can filter for items not in a given state. Any ideas please let me know. 

 

Thanks

1 ACCEPTED SOLUTION
Omid_Motamedise
Super User
Super User

Pkease provide the sample data for your question and explain it based on the ddata

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

View solution in original post

7 REPLIES 7
v-hashadapu
Community Support
Community Support

Hi @SimuQuery , Thank you for reaching out to the Microsoft Community Forum.

Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

dufoq3
Super User
Super User

Hi @SimuQuery, what about this:

 

Before

dufoq3_0-1740142758934.png

 

After (excluded 1st floor and 2nd floor)

dufoq3_1-1740142788860.png

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUXIvyi/NS1FIy8nPL1KK1YlWcgIKGhaXIIk4A0WMUNS4AEWMi5BFXIEiJiUZSCJu2Ax3xzDcA8NwTwzDvVANjwUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, State = _t]),
    FIlteredOut1stAnd2nd = Table.SelectRows(Source, each not List.Contains({"1st floor", "2nd floor"}, [State]))
in
    FIlteredOut1stAnd2nd

Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

v-hashadapu
Community Support
Community Support

Hi @SimuQuery , could you please share more details with us to help solve your issue. If it is already solved, please share the answer here and mark it 'Accept as Solution', so others with similar queries may find it easily.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @SimuQuery , Please let us know if your issue is solved. If it did, please share the details here and mark it 'Accept as solution' to assist others with similar problems. If it did not, please provide further details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @SimuQuery , Could you please share more details that will better discribe your issue, for us to help you solve it.

Thank you.

Omid_Motamedise
Super User
Super User

Pkease provide the sample data for your question and explain it based on the ddata

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
ZhangKun
Super User
Super User

You should describe the problem more accurately so that we can give you more valuable suggestions.

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