I have set up Responsive Screen with Gallery using Raza's video link. I have only one change in that. We needed selection checkbox. When user select one, We need to enable edit button which is out side of the gallery. If user selects more than one button, we need to disable that back. I have tried below code for the checkbox on-select/on-check/on-uncheck event:
If(CountRows(Filter(Gallery4.AllItems,Checkbox1.Value))= 1, UpdateContext({EnableEditButton:true}),UpdateContext({EnableEditButton:false}))
For button, I am setting Display mode to "Enab;eEditButton" variable.
But the issue with CountRow() function is it gives me all the items count and not where the checkbox is checked. Can someone points me how can I get count of items where checkbox is checked?