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 / Sharepoint calculated ...
Power Apps
Unanswered

Sharepoint calculated field in powerapps

(1) ShareShare
ReportReport
Posted on by 44

Hello,
I'm formatting a sharepoint form with powerapps and I'm not able to transform sharepoint calculated fields to integer.
In sharepoint the result of these fields are configured as number with 0 decimal, when they are displayed in powerapps, they are seen as text with a sequence of 0 almost infinite.
I tried the following formulas, without success.
- Text (Parent.Default; "[$ - en-US] en-US") the number appears without successfully deleting the 0
- Value (Parent.Default; "en-FR") the number disappears and the field remains empty.

If anyone can help me.

thank you so much

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Just make a custom section on your form that displays that same number but calculated on powerapps side.

     

    IE) text=thisitem.value1/thisistem.value2

     

    since sharepoint calculates it itself on its side you don't pass the number on through the form, and since you know the formula it's calculating it's easy enough to let sharepoint calculate it.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @StephaneVedren ,

    Could you please share a bit more about the Calculated field in your SP list? Do you set the date type returned from this Calculated field as Number?

    Further, do you want to remove the infinite '0' from the Calculated field value?

     

    Based on the needs that you mentioned, I think the Round function could achieve your needs. I have made a test on my side, please take a try with the following workaround:1.JPG

    Unlock the Calculated Field data card in Edit form, set the Text property of the Label within the Calculated Field data card to following:

    Round(Value(Parent.Default), 0)

    More details about the Round function, please check the following article:

    Round function

     

    Best regards,

  • StephaneVedren Profile Picture
    44 on at

    Hi @v-xida-msft 

    My calculated field is basic. (Capture.JPG)
    I tested your formula, which seems to almost work. I do not have an error message, but it always returns 0 and not the rounded number ... I do not understand why. (Capture2.JPG)

     

    Best regards

    Capture.JPG
    Capture2.JPG
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @StephaneVedren ,

    Currently, I could not reproduce your issue on my side.

     

    Please make sure the result the Parent.Default formula (that you mentioned) returned is a proper Number value rather than 0.

     

    Also please take a try to modify your formula as below:

    Round(Value(ThisItem.YourCalculatedField), 0)

    If the issue still exists, please consider re-create a new app based on your SP list, then try above formula agian, check if the issue is fixed.

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard