Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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!

 

 

  • Verified answer
    WarrenBelz Profile Picture
    148,693 Most Valuable Professional on at
    Re: Calculated column with data type number is not displaying correctly in power apps?

    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1