My app contains a gallery, each item in the gallery has a view button, in the OnSelect property of the button I am using this function: Patch(Datasource, ThisItem, (ViewCount: ThisItem.'View Count' + 1});
If I run the app and press the button, the View Count column for the current item in PowerApps is incremented by 1 which is correct, however, this only works the first time I press the button, if I press it multiple times afterwards nothing happens in my SharePoint list. I just want to increment the view count by 1 each time the button is pressed but this doesn't seem to be working after the first press, what am I doing wrong? TIA.