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 / Changing data type for...
Power Apps
Answered

Changing data type for form

(0) ShareShare
ReportReport
Posted on by 27

Good morning!

 

I am creating a PowerApp from an Excel database. When loading it in to powerapps, it auto-assigned field types (i.e. date, text, etc.) to the different fields. How can I change these? I know how to do it with Sharepoint Lists but not excel.

 

Thanks!

 

Shannon

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @swinnings 

    As with any datasource, PowerApps will infer the data types of the columns based on conditions.  For SharePoint, it basically looks at the column datatype.  For Excel, it has to infer the type based on the data and formatting of that column in the spreadsheet.

    AND, just like any datasource, you cannot change the datatype that PowerApps inferred directly in the app itself, you have to change it in the datasource.

    So, for Excel, the trick will be to get PowerApps to infer the data type that you want.  For example, if you had a date coming in and you wanted text, then you would have to alter the column formatting in Excel to convert the date values into text there.

     

    I hope this is helpful for you.

  • MaxSC Profile Picture
    2 on at

    Hi,

     

    I hope it's not too late to ask.

     

    I have set my Excel data as a "Date" for a specific cell, and as "Time" in the other cell.

     

    My app is now using the datatype "DateTime" for both, when I only want date in one place and time in the other. Any way to change this ? 

     

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard