web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Filter Gallery

(0) ShareShare
ReportReport
Posted on by 310

I have a gallery filtered with Filter('data source','Created By'.Email="email@email.com")

My data source is an SP list and I have a column named "Status" which is a single line of text.

I will like to filter using an AND Condition to include the Status.

 

I have tried this: but I am getting an "incompatible type message". What am I doing wrong? The filter seems to work, but the message persists.

Filter('datasource','Created By'.Email="email@email.com") &&('Status'=2))

Categories:
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Canadiansal 

     

    || is equal to OR

    && is equals to AND

     

    you currently using a condition based on X or (||) Y , so try X and (&&) Y . also check your brackets

    Filter('datasource','Created By'.Email="email@email.com") || ('Status'=2))

     
     
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    @Canadiansal 

    Filter('datasource','Created By'.Email="email@email.com" && Status=2)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Canadiansal Profile Picture
    310 on at

    Thank you! I changed the filter to text(2) and the warning went away. Is this because the Column is a single line of text and it could not evaluate 2?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard