Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Using a flow to Calculate a contribution of the product based on the percentage.

(0) ShareShare
ReportReport
Posted on by 2

Hi, 

I have 3 columns on SharePoint list. 

Product column is a Choice. 

Event Name Products Event Estimated value.Contribution of each product 

International meeting

Product A 

Product B

Product C

90,000

50%

20%

30%

 

I have created a flow that was able to add this event to each of the product sperate list after receiving approval from the budget owner however I need to calculate each product individual contribution value and add it to its relevant list for example:

List of activists of product A should have the below row after its approved: 

 

Event Name Products Contribution
International meetingProduct A 45,000

 

is there a flow that I can use to do such calculation? 

  • v-bofeng-msft Profile Picture
    on at
    Re: Using a flow to Calculate a contribution of the product based on the percentage.

    Hi @Akil_kamal ,

     

    Don't input any value here.

    vbofengmsft_0-1698976903451.png

     

    Best Regards,

    Bof

     

  • Akil_kamal Profile Picture
    2 on at
    Re: Using a flow to Calculate a contribution of the product based on the percentage.

    Hi @v-bofeng-msft , 

     

    Thank you so much. this is extremely helpful. 

    i have tried t replicate the flow with the current lists I have. however, I keep getting the below error

    Akil_kamal_1-1698918170482.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Using a flow to Calculate a contribution of the product based on the percentage.

    Hi @Akil_kamal ,

     

    Could you please tell me what 'Contribution of each product' 's data type is? Is it a choice column two?

     

    I've made a test for your reference:

    I assume  'Contribution of each product' is a multiple lines of text column

    vbofengmsft_1-1698893092847.png

    2\My flow

    vbofengmsft_2-1698893133815.png

    1)

    range(0,length(outputs('Get_item')?['body/Products']))

    2)

    {
    "Title": @{outputs('Get_item')?['body/Title']},
    "Products" : @{outputs('Get_item')?['body/Products'][item()]['Value']},
    "Contribution":@{div(mul(outputs('Get_item')?['body/EventEstimatedvalue'],int(replace(split(outputs('Get_item')?['body/Contributionofeachproduct'],decodeUriComponent('%0A'))[item()],'%',''))),100)}
    }

     

    Result

    vbofengmsft_0-1698893027311.png

    Best Regards,

    Bof

     

     

    Best Regards,
    Bof

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

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow