Hi @Mr-Dang-MSFT thanks for your question.
Yes, I have a gallery within a gallery, just like in your youtube video
I have a checkbox inside the gallery just like in the attached image

I just crossed out the text. The items have this grand parent-parent-child relationship
the grand parent is a dropdown - DropdownGParent
parent is a gallery- galleryParent
child is a gallery - galleryChild
DropdownGParent
Items: Distinct(colAllItems, Title) //colAllItems comes from a single sharepoint list that contains Title (for Grand parent, Parent, Child)
galleryParent
Items: GroupBy(Filter(colAllItems, Title = DropdownGParent.Selected.Result), "Parent", "GroupedByParent")
Inside galleryParent is a checkbox (CheckBox1) - Text: ThisItem.Parent
galleryChild
Items: Distinct(GroupedByParent, Child)
Visible: CheckBox1.Value //as per your video, gallery will show when the checkbox is checked
Inside galleryChild is a checkbox (CheckBox2) - Text: ThisItem.Result
Now my problem is there are grandparents who do not have a parent items ; and some parents do not have child item/s.
But in my case, let's take the galleryParent and galleryChild as an example, the galleryChild and CheckBox2 still shows if the parent has no child (see my screenshot above).
let me know if you need more explanation.