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 Platform Community / Forums / Power Apps / Why does this query pr...
Power Apps
Answered

Why does this query produce a result and this doesn't?

(0) ShareShare
ReportReport
Posted on by 72

Hello Community,

 

I have these queries which are pretty much the same query. query1&3 produces results but query2 doesn't. I am sure I have records that meet the criteria but the second query just doesn't seem to like the user check. Please any thought on this?

 

Query1: If(requestTab="open", Filter('Requests','Request User'.Email=User().Email))


Query2: Filter('Requests',If(requestTab="open",'Request User'.Email=User().Email))  - This is pretty much same as above but written in different way and produced no result...

 

Query3: Filter('Requests',If(requestTab="open",'Request Status'.Value= "Submitted")) - Same query as above but different filter criteria, which produced the record.

 

Also found if I take the if condition out of query2 it does return the record. So it seems it just doesn't like the if statement used with user check... I'm so confused. 

 

Regards

Kira

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,117 Most Valuable Professional on at

    Hi @Kira-Daw ,

    The issue with

    Filter(
     'Requests',
     If(
     requestTab="open",
     'Request User'.Email=User().Email
     )
    ) 

    that I see is that the condition under which you want to filter is not related to the filter itself and therefore needs to be outside it. Your first example is correct. I am surprised thsat the third on eproduced a result - I suggest you stick wiht the first syntax.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    156,117 Most Valuable Professional on at

    Hi @Kira-Daw 

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Kirah Profile Picture
    72 on at

    @WarrenBelz Thank you for your advice on this. It's helped reassured me. I went with your recommended approach instead, and I'm happy with this. 

     

    Thanks again!

    Kira

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard