I have a simple app, that loads a bunch of records in a gallery on the Start Screen.
When the user searches for records in the gallery and there are no mathcing records, I display this message:

using a formula as below on the Visible property:
If(CountRows(Gallery.AllItems) = 0, true, false)
The issue is, that the message displays when the app is loaded, because no records has been fetched by the gallery by then. Is there anyway I can set the sequence of the formulas? E.g., first run the query of the gallery - and afterwards run the formula above?