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 / Powerapps with Mysql -...
Power Apps
Answered

Powerapps with Mysql - select on date column

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

We start with Powerapps and we use Mysql like database.

The connection is well done. We can make an insert in the table.

But when we want to select a row , we can't use the date column for the select.

 

For example :

We would like to do this kind of request : Select * from buildtmpmobileapp where dated = "18-09-2023"

We tried with something like :

 

Set(homeWorkingUp;LookUp('assar.buildtmpmobileapp'; dated = Today()))

or

Set(homeWorkingUp;LookUp('assar.buildtmpmobileapp'; dated = Date(2023;09;18)))

or

Set(homeWorkingUp;LookUp('assar.buildtmpmobileapp'; dated = DateValue(Text("18-09-2023"))))

 

Here's the structure of our table and one line:

Pirocab_1-1695041111310.png

 

Pirocab_2-1695041167616.png

 

Could you help us ?

Thanks

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Pirocab ,

     

    According to my knowledge, in PowerApps Canvas you'll need to convert SQL date/time column to Text then be able to filter on it.

     

    Set(homeWorkingUp;LookUp('assar.buildtmpmobileapp'; Text(dated;ShortDate) = Text(Today();ShortDate)))

     

     

    In you App, you can use a Label and set Text as 

     

    LookUp('assar.buildtmpmobileapp'; !IsBlank(dated)).dated

     

    then in the formula bar, it will tell you the data type of this value in PowerApps. Based on the result, you can determine what to do the next step.

     

    Best regards,

  • Pirocab Profile Picture
    4 on at

    @v-jefferni You rock, thanks !! 

     

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 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard