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

Notifications

Announcements

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard