Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Trouble with converting numers

(0) ShareShare
ReportReport
Posted on by 79

Hi. I am trying to adopt the milestone app. I keep getting an error message (several actually) on different places in the app that seems to be related to sizing of different fields. The error message is e.g; value 0.73456 can not convert to a number. It is related to these formulas and i can't figure out what's wrong. Any help appreciated. This is the "code":

 

Switch(
gblUserLanguage;
"ja-JP";
50 * 1;
Min(
Sum(
AddColumns(
Split(
Self.Text;
""
);
"Size";
LookUp(
colCharsWidth;
CharFont = Self.Font && CharWeight = Self.FontWeight && Char = Result
).Size
);
Size
) * Self.Size + Self.PaddingLeft + Self.PaddingRight + 2;
100
)
) +17

  • lejo_69 Profile Picture
    lejo_69 79 on at
    Re: Trouble with converting numers

    Thank you. This "code" is from the Microsoft team that has built the Milestones app for Teams and Powerapp studio. Tried some tweeking but no solution so far.

  • Drrickryp Profile Picture
    Drrickryp on at
    Re: Trouble with converting numers

    @lejo_69 

    I suspect the problem is that the added column is from a Textinput box and is interpreted by PowerApps as text.  Also "Size" is a reserved word so it may be causing confusion.  Perhaps you could rename it in your formula and wrap is inside Value(). 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard