Hi @Anonymous ,
Could you please share more details about the Patch formula you used to patch data back to your Like List?
Do you patch the ID column value from your Gallery back to the Title column in your Like List?
Further, do you want to count the number of likes per item in your Gallery?
Based on the needs that you mentioned, I think the Filter function and CountRows function could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:
Add a Label control in your Gallery, set the Text property to following:
CountRows(Filter('Like List', Title = Text(ThisItem.ID)))
Note: Please set the "Data row limit for Non-delegable queries" option to maximum value -- 2000 within Advanced settings of App settings of your app.
If you want to disable the Like Icon for the user who has liked current item within your Gallery, please take a try with the following workaround:
Set the DisplayMode property of the Like Icon in your Gallery to following:
If(
!IsBlank(LookUp('Like List', Title = Text(ThisItem.ID) && Email = User().Email)),
DisplayMode.Disabled,
DisplayMode.Edit
)
Please consider take a try with above solution, then check if the issue is solved.
Best regards,