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 / Calculated column with...
Power Apps
Answered

Calculated column with data type number is not displaying correctly in power apps?

(0) ShareShare
ReportReport
Posted on by 379

I have created an additional column in my sharepoint list named Age, this column is a calculated column that needs to show the Age (days) how old a purchase is and this is based upon the order date. The formula that I used is this:

 

=DATEVALUE(TEXT(NOW(),"mm/dd/yyyy"))-DATEVALUE(TEXT([Order Date],"mm/dd/yyyy"))

 

In my SharePoint list the Age is showing the correct number of days, in addition, the sorting works perfectly, but when I add this new column to my Datatable in my power apps application that column is not showing correctly, this is how it is formatted:

 

Lorem1960_0-1633437394832.png

 

I also noticed that when I expect the data type for the Age column that it is being listed with data type string:

 

Lorem1960_0-1633438269767.png

 

I have tried refreshing the data source but no success with that, I really have no idea why the Age column is not showing up in the correct format?? Any help is appreciated!

 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Lorem1960 ,

    I will give you a bit of advice (if you will accept it) - SharePoint calculated columns are for SharePoint and do not play well with Power Apps - do the calculation in Power Apps (in a label if you like, but better the Default of a control).

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard