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 / 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.
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 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
    36,415 Super User 2025 Season 2 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

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 765 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 272

Last 30 days Overall leaderboard