Hello,
I have a nested gallery with a label to indicate if someone is over a maximum number of points. This is a label that I created based on an "If" statement, and therefore not coming directly from a list or other source. I have tried a countif statement to control the displaymode of a button outside the gallery. Context would be that if any of the gallery rows exceed the maximum points, to disable to button until the issue is resolved (points < Weekly maximum).
Here is my code:

My label "Label_OverMax" is based on [If(Sum(Filter(collection, Column=ThisItem.Result), Points) > Value(Label_Max.Text), "Over Weekly Max", "")
Does anyone know why the CountIf function is returning 'blank'?