HI @mattthew ,
Do you want to display the Edit form only when the Gallery1 item is selected, and only have single one record matches this selected item from your SP List2?
I assume that there is a common column between your SP List 1 and SP List2, please consider set the Visible property of the Edit form to following:
If(
!IsBlank(Gallery1.Selected) && CountRows(Filter('SP List2', CommonID = Gallery1.Selected.CommonID)) = 1,
true,
false
)
Note: The CommonID represents the common column between the SP List 1 and SP List 2, on your side, please replace it with actual column name from your SP Lists. You use the Common Column to set up the relationship between the List 1 and List 2.
Best regards,