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 / Billy Cart Race Scoring
Power Apps
Answered

Billy Cart Race Scoring

(0) ShareShare
ReportReport
Posted on by 12

Hi All,

 

I'm pretty new to PowerApps and I'm trying to work out how to build a scoring system in SharePoint Lists/PowerApps.

 

I have the list all setup and several forms working fine. The last piece of the puzzle is to get the scoring sorted. It's very simple. If a billy carts with ID number "4" comes first they get 3 points added to the tally. 2nd gets 2 points, third gets 1 etc. I have the ID number column and a Score column setup and I'm trying to setup a simple form with 3 number inputs for 1st, 2nd and 3rd where we would put in the cart ID. Then a submit button. Clicking the button would simply add the points to the score of the corresponding cart.

 

Here is the button formula I have been trying to work out. I have just been trying to get it to work with first place and once I figure that out i'll add 2nd and 3rd.:

 

Patch('Race Results', LookUp('Race Results', ID = fpid), {Score: Sum(Value(ThisItem.Score),3)})

 

fpid is the text input box "First Place"

spid is the text input box "Second Place"

tpid is the text input box "Third Place"

 

Here is the form - not pretty or finished. I'm just trying to get it functioning first

 Screenshot 2023-06-24 134551.jpg

 

Results List:

Screenshot 2023-06-24 134932.jpg

 

Any help would be greatly appreciated.


Cheers


Ryan

Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at

    Patch('Race Results', LookUp('Race Results', ID = Value( fpid.Text)), {Score: Sum(Value(ThisItem.Score),3)})

     

    Make sure you also set texinput format to number so to avoid text

     

    developerAJ_0-1687587667610.png

     

     

     

    Please click Accept as solution and give it Thumbs Up 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.

    You can connect with me on LinkedIn

  • HillsBillyCarts Profile Picture
    12 on at

    Thanks for the prompt reply!

     

    I'll give it a go once I can figure out why I keep getting the "getting your data" message.

  • HillsBillyCarts Profile Picture
    12 on at

    Hi there,

     

    So I have got this far but the data seems to be not coming through from the ID lookups?

     

    This is what the app does when I run it: 

    Screenshot 2023-06-24 152540.jpg

    This is the structure in PowerApps and what it looks like in edit mode. I had to put the button in the DataCard under the form so it could access the list. Otherwise the formula kept failing.

    Screenshot 2023-06-24 152704.jpgScreenshot 2023-06-24 152642.jpg

  • developerAJ Profile Picture
    4,763 on at

    could you please let me know what is item property of form.

     

    Patch('Race Results', LookUp('Race Results', ID =  Value( fpid.Text)), {Score: Sum(Value(LookUp('Race Results', ID =  Value( fpid.Text),Score)),3)}) 

    on button click and you can keep button outside the form

     

    use the above formula

  • HillsBillyCarts Profile Picture
    12 on at

    Hi there,

     

    When I try the new code in a button outside the form I get these errors:Screenshot 2023-06-24 155038.jpg

     

    Form settings:

    Screenshot 2023-06-24 154838.jpgScreenshot 2023-06-24 154817.jpg

  • Verified answer
    developerAJ Profile Picture
    4,763 on at

    OOPS sorry!

     

    Try it now 

    Patch('Race Results', LookUp('Race Results', ID =  Value( fpid.Text)), {Score: Sum(Value(LookUp('Race Results', ID =  Value( fpid.Text),Score)),3)}) 

  • HillsBillyCarts Profile Picture
    12 on at

    You are an absolute champion!

     

    Thanks you so much!

  • developerAJ Profile Picture
    4,763 on at

    Glad i could 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