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 / Power Apps and custom ...
Power Apps
Answered

Power Apps and custom list based on a computation within the list (sharepoint list)

(0) ShareShare
ReportReport
Posted on by 4

Hello Community, 

 

I'm working on a simple application with a table component that is supposed to display the difference between the number of checked out and checked in items. Below, you can see my list (sharepoint). I haven't been able to figure out how to show the difference. Maybe a combination of group by and nested lookup or something but again, couldn't figure it out. Some direction or sample would be greatly appreciated. 

 

List with checked out and checked in items. 

list_screenshot2.png

 

Below is what I aim to achieve as a result. 

list_screenshot3.png 

 

Thanks

Categories:
  • Verified answer
    Fardy_MADI_2 Profile Picture
    334 Super User 2024 Season 1 on at

    Hi @ozzythewizard,

     

    Here it is a formula that can solve your issue where Dataset represents your data from your sharepoint list : 

    ClearCollect(NewDataSet,
        ForAll(GroupBy(Dataset, "CheckoutID", "Code", "GroupData"),
            {
                CheckoutID: CheckoutID,
                Code : Code,
                Quantity: Sum(GroupData, If(Direction = "In", -Quantity, Quantity))
            }
        )
    )

     

  • ozzythewizard Profile Picture
    4 on at

    Thank you. This solved my issue. 

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard