Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

mul(triggerOutputs()?['body/Amt'],-0.003)

(0) ShareShare
ReportReport
Posted on by 13

Amt is a  value, e.x 3000$, 3000*-0.003=-9, but the expression result is 9.

 

it looks like the mul function can't read "minus" parameter. isn't it?

 

if so, how can i multiply a minus rate.

  • Shizu Profile Picture
    13 on at
    Re: mul(triggerOutputs()?['body/Amt'],-0.003)

    I think it is not the”mul(), but the condition. 

    this flow has a condition of the value of a field “category “, if the the value is sell, commission is equal to sales *-0.003, or sales *0.003.

     

    the category is a field , type of “option “. After testing, the condition will not be true. That is the reason. I think I typed a wrong grammar of reference for the condition.

    I am using my phone, can’t screenshot for now. Maybe later 

     

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at
    Re: mul(triggerOutputs()?['body/Amt'],-0.003)

    You’ll have to share a bit more info. A screenshot of the source and flow history.

     

    Damien

  • Shizu Profile Picture
    13 on at
    Re: mul(triggerOutputs()?['body/Amt'],-0.003)

    no,it didn't work.

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at
    Re: mul(triggerOutputs()?['body/Amt'],-0.003)

    Hi @Shizu 

     

    This works for me 

    mul(6,-0.3)
     
    Could it be that your triggerOutputs()?['body/Amt'] is a string and needs converted to float or int?
     
    float(triggerOutputs()?['body/Amt'])
     
    I also tried:
    DamoBird365_0-1627626613291.pngDamoBird365_1-1627626640099.png

     

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow