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 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
    153,084 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
    153,084 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard