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 / Subtract the QTY that ...
Power Apps
Answered

Subtract the QTY that is in the gallery slider in my sharepoint list

(0) ShareShare
ReportReport
Posted on by 16

I want to subtract the amount that is in my slider in my sharepoint list when I click on "ADD TO CARD" ... and when I open the cart, if I click on the trash, add again the amount that was in the cart to the list from sharepoint .. I've tried several methods but it's not working.. tried Update(ItemINVENTORY;ThisItem.QTYinINV;ThisItem.QTYinINV-Slider1.Value).. but it didn't work
ItemInventory= My sharepoint list
QTYinINV= item QTY in my sp list
In Cart, QTYinCart= Qty of and item, in my cart..

NandoHT99_0-1661471927153.png

 

Categories:
  • Verified answer
    NandoHT99 Profile Picture
    16 on at

    SOLVED ! in ADDToCARD Button, i added this formulad ForAll(Carrinho;UpdateIf(ItemINVENTORY; ProdutoID = ID; {QTYinINV: ThisItem.QTYinINV - QTYinCart}))   and in the trash bin, i added this one ForAll(Carrinho;UpdateIf(ItemINVENTORY; ProdutoID = ID; {QTYinINV: QTYinINV+QTYinCart}));;

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

    Hi @NandoHT99 ,

     

    Glad to see you resolved the issue.

    Please consider marking your own reply to close the case. Thanks in advance.

     

    Best Regards,

    Wearsky

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard