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

Community site session details

Session Id :
Power Apps - Building 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:
I have the same question (0)
  • Verified answer
    rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at
    Re: Filter Gallery

    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,921 on at
    Re: Filter Gallery

    @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
    Re: Filter Gallery

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard