Skip to main content
Community site session details

Community site session details

Session Id : sn+84zZPB/8bP6CLGhQ2ZO
Power Apps - Building Power Apps
Unanswered

Runtime error a non finite number

Like (0) ShareShare
ReportReport
Posted on 3 Mar 2023 17:52:01 by 81

Hi

 

I made a calculation in a default field and it returns an non finite number.

I don't know how to solve it. If I calculate it myself, it's indeed 664561,833333333... but how do I change it to 2 decimals?

 

I tried the round function but that doesn't help.

Sarah_cool_0-1677865851866.png

 

  • Sarah_cool Profile Picture
    81 on 04 Mar 2023 at 19:22:54
    Re: Runtime error a non finite number

    @SebS @timl 

    the text() function doesn't help, the errors stays 😞

    If(And("One time" in DataCardValue4_2.Selected.Value, "2022" in DataCardValue42.Selected.Value),Value(DataCardValue21_2.Text),If(And("Contract" in DataCardValue4_2.Selected.Value, 
    DataCardValue43.Selected.Value <= 2022,DataCardValue44.Selected.Value >= 2022), Value(DataCardValue21_2.Text)/(DataCardValue44.Selected.Value - DataCardValue43.Selected.Value +1),0))
  • SebS Profile Picture
    4,204 Moderator on 03 Mar 2023 at 17:57:57
    Re: Runtime error a non finite number

    @Sarah_cool 

     

    Did You try to just wrap it in Text(num,"0.0") ? and than wrap  Value() ? will look like abomination 🙂 but maybe it will work 😉

  • timl Profile Picture
    35,437 Super User 2025 Season 2 on 03 Mar 2023 at 17:57:54
    Re: Runtime error a non finite number

    Hi @Sarah_cool 

    You can wrap your exisiting formula inside a call to Text:

    Text(<InsertYourExistingFormula>,
     "#.00"
    )

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete