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 in detail form
Power Apps
Answered

calculate in detail form

(0) ShareShare
ReportReport
Posted on by 163

Good morning to all,

 

I use an Excel workbook to manage a stock. In this workbook I have a table with 5 columns.
Movement_ID/Product_ID/Date/OUT/IN.


In my power apps page with the details of my products I would like to display the quantity of parts in stock.


Does Power apps have the possibility via the "Movement" table to make a subtraction according to an ID from the IN and OUT? quantities and to display it in my part's detail form?


Thank you for your help

Categories:
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @tuonoman ,

    The formula you looking for is:

    With({movementSelectedProduct:Filter(Movement,ID=selectedID)},
     Sum(movementSelectedProduct,IN)-
     Sum(movementSelectedProduct,OUT)
    )

    What you need to do is to establish the way you want to select the Product_ID (and set the selectedID value from the filter).

     

    Hope it helps !

        

  • tuonoman Profile Picture
    163 on at

    Hi @gabibalaban 

    Thanks for your help.

    I have modified your proposition.

    That works perfectly !

     

    I like Powerapps more and more

    With({_movementSelectedProduct:Filter(MOUVEMENT;ID_PRODUCT=LISTEPRODUCT.Selected.ID_PRODUCT)};
     Sum(_movementSelectedProduct;IN)-
     Sum(_movementSelectedProduct;OUT)
    )

     

     

     

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard