Can't Use local Variables

Hi there,
I’m trying to use a local variables in my Dashboard.
After i create the variable i can’t see it or use it in Query code in the objects.


Query without the variable
Query with the variable but with error (when i write the code it doesn’t show

found the solution

Int code i need to put like this
“$empresa” when one result or ($empresa) for multi result