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

Sum

(0) ShareShare
ReportReport
Posted on by 141

Dears,

 

I have 2 SharePoint lists.

First One: 'ProductsTime' : each product have a time(number column). eg 1 hour for Powerapps product 1 hour for Power automate...

 

GhassSD_0-1611918946222.png

Second List: 'Request' I Lookup the Product column(accept multiple choice value) from 1st list to second with "Time" column.

GhassSD_1-1611919069415.png

 

I Create an app: that submit the form of the 2de list in order to add new record.

 

GhassSD_4-1611919601432.png

 

GhassSD_3-1611919288387.png

 

As shown above the "Product" column is in a datacardvalue dropdown that accept multiple choice.

My target is to count or calculate the time according to selected product in dropdown.

if user choose power apps & power automate so the time is 2h

If user choose just power apps so the time is equal to 1h.

 

Any idea

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @GhassSD ,

    To cleary understand, why don't you solve this from PowerApps ? Is there a particular reason to solve it with PowerAutomate (actually I don't think that is necessary to use PowerAutomate) ? In which column you want to save the result (I called it total_time)?  

    From PowerApps:

       -   on submit button insert:     

     

     ForAll(
     ProductsComboBox.SelectedItems, 
     Collect(TimeCollection,
     LookUp(ProductsTime,Product=Value)
     )
    )

     

       - in your form insert a datacard linked to the total_time column and set the Update property to:

     

    Sum(TimeCollection,Value(Time))

     

     

    Hope it helps !

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard