web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Textbox is showing 1 i...
Power Apps
Answered

Textbox is showing 1 instead of 100

(0) ShareShare
ReportReport
Posted on by 60

Hello,

 

I am trying to Sum the budget numbers out of budget number string as shown on the picture.

 

the result textbox show 1 instead of 100. This ends up storing the value 1 in my SharepointList column called %. I need it to show 100 in the result textbox so that it stores in the % column as 100.

 

Here is my code: Sum( Filter(Mid( Split(DataCardValue10.Text,Char(10)),16,17),!IsBlank( Result)),Result)

What do I need to adjust so that result shows as 100 instead of 1?

Thank you

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @1RiverJK77 ,

    You only need two characters

    Sum( 
     Filter(
     Mid( 
     Split(
     DataCardValue10.Text,
     Char(10)
     ),
     16,
     2
     ),
     !IsBlank(Result)
     ),
     Result
    )

     

    WarrenBelz_0-1662855525504.png

    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.

    Visit my blog Practical Power Apps

  • 1RiverJK77 Profile Picture
    60 on at

    Thank you. It works

  • 1RiverJK77 Profile Picture
    60 on at

    Also since you provided the solution. In continuation of this, in my Power Automate, I have Power Automate email that sends the submitted information from my app. The issue is how can I split budget entries to show in two or more lines when email sent out via Power Automate.

    in the body of the email budget entry line shows as one line as shown in the attachment. Need to show the second entry below of the first entry.

    Thank you for your help

     

     

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @1RiverJK77 ,

    You can send directly from Power Apps with Office365Outlook.SendEmailV2() as below as part of the body. You can also send this as the content to a Flow if you are using that.

    "Budget Numer Percentages - <br> & 
    Substitute(
     DataCardValue10.Text,
     Char(10),
     "<br>"
    ) & 
    "<br> Total of Budget Percentage" & YourLabelName.Text

     

    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.

    Visit my blog Practical Power Apps

     

  • 1RiverJK77 Profile Picture
    60 on at

    I am using a an email flow. So this how the email flow is and the result still not showing correctly  in the email content.  Break line is not happening.

    Attached: Email_Content--Shows when received email still no line break and the word Substitute shows in the line as well.

                    Email_Flow_Content --- is my email flow code.

     

    Am I placing your code not correctly?  Thank you for your help.

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    @1RiverJK77 ,

    That code is for Power Apps, not Flow - I was simply suggesting you could send it direct using Power Apps. In the Flow, you just need to add the String "<br>" where you want the break.

     

    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.

    Visit my blog Practical Power Apps

  • 1RiverJK77 Profile Picture
    60 on at

    yes. but ,<br> is till not seperating the string in the multiLine text:

    10-94-20-70023 90%

    10-94-20-70024 10%

    I need it to show as the one above in the email content my email flow sends out.

    This entry in the multiline text comes out 10-94-20-70023 90% 10-94-20-70024 10% in the email content and putting <br> is not doing anything.

    Any ideas?

     

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @1RiverJK77 ,

    This document may be of assistance - I have however never used the function for this purpose.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard