Summary
This is text version of the video by Daniel Christian.
#1 Add a Gallery control Gallery1
#2 Add a Check Box control in the Gallary
#3 Remove the border of the checkbox
#4 Add a Label control name it “CountLabel”. Add Text property formula.
// The formula will get all items in the galley and filter by checked checkboxes.
CountRows(Filter(Gallery1.AllItems,Checkbox1.value))
#5 Add DisplayMode formula as
If(Self.Value || (Value(CountLabel.Text) = 0), DisplayMode.Edit, Disabled)