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
Unanswered

Invalid Argument Type. Expecting a number value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am attempting to create a filter on a gallery.  There is a PIckupDate calendar picker, Ther is a ReturnDate calendar picker, and a VehicleType dropdown.  The PickupDate hits a Sharepoint List that has dates in it, and the Returndate hits the same list. VehicleType will hit another list that is in the same site.  When I filter by type I can get the type of vehicle to show in the gallery by using Filter(MD2018_Vehicle_Info,Vehicle_x0020_Type = TypeDropdown.Selected.Value). 

 

But when I try and filter the dates I get Invalid Argument Type. Expecting a number value.  I think it has something to do with the way the date coulums are formated (I have them set as date time).

 

Does anyone know how to format dates so that PowerApps will see the date as a number value?

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    How do you filter dates within the Gallery control of your PowerApps app? Could you please share a bit more about the formula?

    Could you please show a bit more about the Date columns within your SP list? Are they Date only column?

    Further, could you please show more details about the error message within your app?

     

    I assume that the Date columns are Date Only type column in your SP list, is it true? I have made a test on my side and don't have the issue that you mentioned. Please take a try with the following workaround:

    3.JPG

     Set the Items property of the Gallery control to the following formula:

     

    Filter('20180615_case4',PickUpDate=Text(DatePicker1.SelectedDate,"[$-en-US]mm/dd/yyyy"))

    Note: The '20180615_case4' is the SP list data source within my PowerApps app. The PickUpDate is a Date only type column in my SP list. The DatePicker1 represents the Date Picker control within my app.

     

     

    Best regards,

    Kris

     

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#2
Haque Profile Picture

Haque 69

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard