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 Apps / calculate and update c...
Power Apps
Answered

calculate and update column value of another list when item created

(0) ShareShare
ReportReport
Posted on by 105

Hi,

I am working on IT Asset Management System, I have two sharePoint lists, one for IT asset to assign materials, and the other one for materials categories and the quantity of each.

 

my issue here when I create a new item in IT asset list in PowerApps, I need to update materials quantity as well.

lets say I have 30 Laptops in materials list, So when I assign a new laptop in IT asset list, in Materials list I want to update the quantity value of the laptops from 30 to 29.

 

What is the best approach to do so.

Thanks

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @YAYA ,

    You did not provide any code, so I assume you have not attempted any yet and will give a syntax guidance answer.

    You would have a "linking" common field between the lists, so I will call that Category for the moment. You would also have a Quantity field in Materials.

    So if you assigned a Category item in Assets, you would do something like this

    Patch(
     Materials,
     {Category:AssetCategoryField},
     {Quantity:Quantity-1}
    )
    

    All the values above naturally will depend on your lists and where you are running it from.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @YAYA ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    YAYA Profile Picture
    105 on at

    Hi @WarrenBelz 

    sorry for my delay reply as i was on vacation, i have solved the issue by power automate , in powerapps once you click the button the flow kick off, i have tried your solution but some how is not calculated right, thank you for your help 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard