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 / Invalid argument type ...
Power Apps
Answered

Invalid argument type on filter of gallery items. Expecting Boolean,Number, Text, OptionSetValue

(0) ShareShare
ReportReport
Posted on by

Hi all,

I have an issue when using two filters on the Items property of a gallery.

I have a gallery hooked up to a SP list called 'DXCAccountAudit'. The two columns in the list I am trying to filter the gallery items on are 'Account Enabled' (yes/no field) and 'RequestedBy' Person and Group field (not set to multi selections)

On the items property of the gallery I have the following syntax:

Filter(DXCAccountAudit,AccountEnabled=true && DXCAccountAudit,RequestedBy.DisplayName = CurrentUser.Text)

DXCAccountAudit is my data connection to the SP list called 'DXCAccountAudit'

and 'CurrentUser' is a label within the app that has its text property set to User().FullName

When I use each filter separately (i.e without joining with &&, they work OK) but together I get the error:

 

Invalid argument type on filter of gallery items. Expecting Boolean,Number, Text, Overvaluation

Can anyone help.

I tried targeting the datacard within the gallery called 'Gallery2UserName' that is set to ThisItem.RequestedBy.DisplayName  of the SP person or group field but I get a circular ref error as well.

Darren137227_0-1638953731537.png

 

 






  

Categories:
I have the same question (0)
  • shoog Profile Picture
    2,164 on at

    You should reference the table just once, please try this:

     

    Filter(DXCAccountAudit,AccountEnabled=true && RequestedBy.DisplayName = CurrentUser.Text)

     

     

  • Darren137227 Profile Picture
    on at

    Hi shoog, after checking it appears to show all the ones with matching current user and is ignoring the one that has Account Enabled is true!

  • Verified answer
    Darren137227 Profile Picture
    on at

    Have finally worked this out. Needed to set AccountEnabaled=1 instead of true!

    Filter(DXCAccountAudit,RequestedBy.DisplayName = CurrentUser.Text And AccountEnabled=1)

    Now works OK

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard