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 / removing decimal place...
Power Apps
Answered

removing decimal places from text boxes

(1) ShareShare
ReportReport
Posted on by 205

Hi, 

 

I am trying to remove the decimal places on the output of a calculation for a text box. 

 

(DataCardValue137.Selected.Value + DataCardValue138.Selected.Value + DataCardValue139.Selected.Value) / 15 * 100

 

attempted round down function but having issues to make it work. 

 

Can anyone help?

 

thanks!

 

 

Categories:
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi,

     

    Please find below the URL. I hope it will help you to resolve your issue.

     

    you can use like below expression -

    int(DataCardValue137.Selected.Value + DataCardValue138.Selected.Value + DataCardValue139.Selected.Value) / 15 * 100)

     

    for More Details check the below-mentioned thread.

     

    https://powerusers.microsoft.com/t5/Building-Flows/Removing-decimal-points-on-calculated-column/td-p/189802

     

    Thanks,

     

     

  • eka24 Profile Picture
    20,925 on at

    You can also try:
    Text(Value(DataCardValue137.Selected.Value + DataCardValue138.Selected.Value + DataCardValue139.Selected.Value) / 15 * 100),"[$-fr-FR]# ###","fr-FR")

     
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Channah ,

    Could you please show more details about the issue that you mentioned?

    Do you want to remove the decimal places from the Calculation result?

     

    Based on the needs that you mentioned, I think the Round function could achieve your needs. Please consider set the Default property of the Text Input Box to following:

    Round(
     (DataCardValue137.Selected.Value + DataCardValue138.Selected.Value + DataCardValue139.Selected.Value) / 15 * 100,
     0
    )

    Note: The Round function is required to provide two arguments value. Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-round#syntax

     

    If you want to remain two decimals within the Text Input box for your calculation result, please modify above formula as below:

    Round(
     (DataCardValue137.Selected.Value + DataCardValue138.Selected.Value + DataCardValue139.Selected.Value) / 15 * 100,
     2
    )

    Please take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Michal Z. Profile Picture
    149 on at

    @VijayTailor There is no int function in PowerApps. 

    You can use mod instead. 

    If you have a value with decimals and want to get the integer value, use the following:

     

     

    Value-Mod(Value,1)

     

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard