Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

perform complicated calculations for option pricing

(1) ShareShare
ReportReport
Posted on by 13

Hi, i want to create an app that requires the user to input values in specifc fields and based on those power apps will have to perform a complicated calculation. Specifically i want to create an option pricer in which the user/ database will populate fields for the strike price, volatility, time to expiration and the output will be the value of the option.

 

This calculation requires the use of statistical formulas such as the Normal distribution, math formulas LOG etc. which dont seem to be supported by powerfx. 

 

Is there a way to perform the above? In power BI i know how to do it since DAX supports the required functions but the issue is that i cant have input fields the same way they exist in power apps.

  • SunilPashikanti Profile Picture
    731 Super User 2025 Season 1 on at
  • powertree Profile Picture
    13 on at
    Re: perform complicated calculations for option pricing

    thanks, very helpful background information.

     

    Are there any resources you can share for the recommended solutions 1 & 2? 

  • Verified answer
    SunilPashikanti Profile Picture
    731 Super User 2025 Season 1 on at
    Re: perform complicated calculations for option pricing

    Hi @powertree

     

    Creating an option pricer in Power Apps that performs complex calculations involving statistical formulas like the Normal distribution and logarithms can be challenging, especially since Power Apps primarily uses PowerFX, which doesn’t directly support these advanced mathematical functions.

    Find few approaches you may consider:

     

    Custom Connector or API Integration:
    You could create a custom connector or integrate with an external API that performs the option pricing calculations. This way, you can leverage a backend service (e.g., written in Python, C#, or any other language) that supports the necessary mathematical functions.
    The Power App would send the input values (strike price, volatility, time to expiration) to the backend service, which would then calculate the option value and return it to the app.

     

    Use Power Automate (Flow):
    You can create a Power Automate flow that triggers when the user submits the input values in Power Apps.
    The flow can perform the complex calculations using built-in expressions, custom code (e.g., JavaScript), or even call an external service (e.g., Azure Functions).
    Once the calculation is done, the flow can update a field in your database or return the result to the Power App.


    Approximate Formulas in PowerFX:
    While PowerFX doesn’t directly support advanced statistical functions, you can approximate some of them using available functions.
    For example, you can use the Power function to calculate exponentials (similar to EXP), and you can use basic arithmetic operations to mimic logarithmic behavior.

     

    Keep in mind that these approximations may not be as accurate as specialized libraries or languages.

     

    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.

    Sunil Pashikanti - Tech Blog: PowerApps

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard