View the original community article here
Last tested: March 2021
There is no way to bring filters or fields into the UI conditionally.
However, there are workarounds for affecting the generated SQL.
Bringing filter SQL into the WHERE Clause
Bringing a field into the SELECT Clause
The LookML parameter called "required fields" brings in other fields to the generated SQL when this field is selected.
This content is subject to limited support.