I want to make dropdown filter with custom choices, but firstly when I try to use "field filter" variable it always make an error, there is my query
SELECT count(*) AS Total, skel."REG" AS "region" FROM "PROFILE" bw
INNER JOIN "SETUP_REG" skel ON skel."NO_REG" = bw."NO_REG"
[[ WHERE (bw."JOB" = ({{job}})) AND
bw."ENTRI_DATE" BETWEEN {{start_date}} AND {{stop_date}} ]]
GROUP BY skel."NAMA_REG"
it turn out error
ERROR: invalid reference to FROM-clause entry for table "PROFILE" Hint: Perhaps you meant to reference the table alias "bw". Position: 264
ERROR: operator does not exist: numeric = boolean Hint: No operator matches the given name and argument types. You might need to add explicit type casts. Position: 343