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 / Increment SharePoint l...
Power Apps
Answered

Increment SharePoint list column by 1 each time an icon/button is clicked.

(0) ShareShare
ReportReport
Posted on by 36

Hi everyone, 

 

I have a SharePoint list called innovation station. This list contains a number column called "gong votes". My power app has a gallery that contains a button that when people click should add +1 to the gong votes column of that particular record.

 

I have tried Patch('Submitted Innovation Ideas',ThisItem,{'Gong Votes':ThisItem.'Gong Votes'+1}). This seems to not update the list at all, it doesn't give me an error but just doesn't update the list at all. 

 

Note I have tried both with the icon and button. 

 

Any Ideas I am really stuck now!

Gong votes.PNG
Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @KVCBC ,

     

    Try this to evaluate the incremented value before patching it:

    With(
    	{_IncValue: ThisItem.'Gong Votes' +1},
    	Patch(
    		'Submitted Innovation Ideas',
    		ThisItem,
    		{'Gong Votes':_IncValue}
    	)
    )
  • Pstork1 Profile Picture
    69,599 Most Valuable Professional on at

    Unless you are inside a gallery the concept of thisItem doesn't really mean anything.  So I think you'll have to use Lookup in some fashion to get the Item and Patch it to Increment the value.

    Patch(Gong,LookUp(Gong,Title="Test"),{Gong:LookUp(Gong,Title="Test").Gong+1})
  • KVCBC Profile Picture
    36 on at

    I am inside a gallery. The first gallery displays the items from the record the second displays the images.

     

    This still doesn't increment the list 

    With(
    	{_IncValue: ThisItem.'Gong Votes' +1},
    	Patch(
    		'Submitted Innovation Ideas',
    		ThisItem,
    		{'Gong Votes':_IncValue}
    	)
    )

     

    gong votes2.PNG
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @KVCBC ,

     

    Unfortunately I wasn't able to replicate this issue. With both your original formula and my suggested one, the number type column in SharePoint increased by 1 after triggering.

     

    Try using Monitor to see what's happening in the background when running the formula on your end. More information on how to use Monitor can be found here: https://learn.microsoft.com/en-us/power-apps/maker/monitor-canvasapps

  • KVCBC Profile Picture
    36 on at

    It is so strange. I have opened the monitor and clicked the button but it doesn't register the clicking. The only event logged is when I clicked the back button. 

    gong votes 3.PNG
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Perhaps there's some other control in front of the gallery which blocks the button? Try moving the gallery to the front to rule this out.

  • KVCBC Profile Picture
    36 on at

    I have moved the gallery to the front and still nothing 😞 

  • KVCBC Profile Picture
    36 on at

    Ok I just changed the button's on select to Back(ScreenTransition.Fade) and still nothing so it might be a problem with the layout. The button does hover a different colour and is clickable. 

  • Verified answer
    KVCBC Profile Picture
    36 on at

    Solved it the gallery itself was in view mode instead of edit! Thanks 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

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard