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 / Convert a string equat...
Power Apps
Suggested Answer

Convert a string equation to its relative value!

(1) ShareShare
ReportReport
Posted on by 10
I am trying to output a cost, which is calculated by an equation. however the label just outputs the equation as a string. Within excel I would typically use a macros Eval() function, however this does not exist in power apps. My outputted equation is based off of another dropdown (Unique Ref no.) therefore I cannot simply write the equation out. I have attached a photo of my app below.
Screenshot 2024-10-10 143630.png
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi, please share the inputs to this.
     
    After I see the input (where this formula is written) it will make more sense.

    Not sure what you mean by you cannot write it out because its based on another drop down.

  • timl Profile Picture
    37,160 Super User 2026 Season 1 on at
    Hi HS-07100930-0
     
    With Power Apps, there's no Eval function. Therefore, there's no built in way to parse the result of an equation/expression.
     
    There's no simple way to implement Eval in Power FX. Therefore, the approach I'd take is to try to evaluate the equation outside of Power Apps.
     
    I've not tried this but it may be possible to write a .NET Azure Function app and to connect it to your Power App via a custom connector.  
  • HS-07100930-0 Profile Picture
    10 on at
    @FLMike  this is the code that is in the label. I have a dropdown called 'Unique Ref Nr', Seen below:
     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 833

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 383

Last 30 days Overall leaderboard