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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using a flow to Calcul...
Power Automate
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? 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    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

  • Akil_kamal Profile Picture
    2 on at

    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

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Akil_kamal ,

     

    Don't input any value here.

    vbofengmsft_0-1698976903451.png

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard