web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : MNOc9hTnVb98xTDF/x1DNt
Copilot Studio - General
Answered

Exponents - To the Power Of

Like (0) ShareShare
ReportReport
Posted on 17 Oct 2023 20:35:23 by

I would like to use the PVA bot to forecast an increase wages over a period of time.

 

I would pass 3 variables:

 

Base Pay

Pay increase Percentage

and number of periods

 

So lets say if I want to estimate if a person was going to receive 3 percent in pay increases over the next 5 years what would they be at if they are current making $100,000.

 

=$100,000*(1.03)^5

 

Can I do this in flow and retrieve to PVA BOT.  Is there a function for this?

 

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    32,859 Most Valuable Professional on 30 Oct 2023 at 11:35:23
    Re: Exponents - To the Power Of

    Hi @wherdzik,

     

    Yes, that should be possible. @DamoBird365 has created a nice video on how to use xpath and xml for this type to the Power of calculation:

    https://www.youtube.com/watch?v=Vmor6LwL4mY

     

    Below is an PVA example which uses that same approach

     

    1. Compose with Root xml

    <root></root>

     

    2. Select action

    a. From field

    range(0,triggerBody()['number_2'])

    b. Map field (switched to text mode with button on the right)

    add(div(float(triggerBody()['number_1']),100), 1.0)

     

    3. Compose to calculate new forecast wage

    mul(triggerBody()['number'],xpath(xml(outputs('Compose_-_RootXML')),join(body('Select'), '*')))

     

     

    calc_new_wage.png

     

    4. My PVA topic test run with your example data

     

    calc_new_wage_pva.png

     

     

  • wherdzik Profile Picture
    on 30 Oct 2023 at 17:17:07
    Re: Exponents - To the Power Of

    Works wonderful. Thank you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 457 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 339 Super User 2025 Season 2

#3
CU15090955-0 Profile Picture

CU15090955-0 46

Last 30 days Overall leaderboard