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

Notifications

Announcements

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:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard