If the code within the screenshot is written in the Text property of the label, it should work. I unfortunately was unable to recreate the issue on my end.
However with Explicit Column selection turned on (will be by default), it might be beneficial to check whether (1) ThisItem.rep_id actually has a value in your gallery and (2) whether the Filter actually returns something. It might be that the Filter() is simply not retrieving values due to there being no matching values (check your data) or rep_id not having a value caused by Explicit Column selection.
Should rep_id not have a value, the only 2 workarounds I know of is:
(option 1) In the Items property of your gallery, hardcode the needed columns with the ShowColumns() formula
(option 2) Create a new label in the gallery, set it to ThisItem.rep_id and make it invisible
If this solves your question, would you be so kind as to accept it as a solution.
Thanks!