I made a PowerApps form for SharePoint and wanted to capture a count of items listed in a gallery control. The gallery is child to the main form parent. I set my Count function to fire when Screen.OnVisible, but I think this fires before the gallery is loaded because my X variable returned is always 0.
Suggestions?
ScreenView.OnVisible = Set(X, CountRows(Tasks))