@zmansuri
Very good!
The formula can be changed to this:
Search(
Filter(ITPathFinderCandidate,
(Status.Value = drpStatus.Selected.Value || drpStatus.Selected.Value = "All") &&
(Technology.Value=drpTechnology.Selected.Value || drpTechnology.Selected.Value="All")
),
SearchBox.Text, "FirstName", "LastName"
)
There is no need to check if the textinput is blank and then add the same redundant formula.
Now, you have one of two choices...
1) Add the count in the Gallery
AddColumn(
Search(
Filter(ITPathFinderCandidate,
(Status.Value = drpStatus.Selected.Value || drpStatus.Selected.Value = "All") &&
(Technology.Value=drpTechnology.Selected.Value || drpTechnology.Selected.Value="All")
),
SearchBox.Text, "FirstName", "LastName"
),
"SubmitCount", CountRows(SubmissionDataSource, userMatchingCriteria)
)
Then you can have a label in the Gallery with Text property of : ThisItem.SubmitCount
-or-
2) Just add a label in the Gallery with : CountRows(SubmissionDataSource, userMatchingCriteria)
Both will work, the first will slow the initial load of the Gallery and the second will display "incorrect" results until it finally evaluates that row.
So in other words, shifting the slow from the gallery load to the label. So depends on which works best for you.