SYMPTOM:
An attribute DESC form is defined with ApplySimple expression. However, if the users define threshold based on the description form of this attribute, the threshold is not applied.
STEPS TO REPRODUCE:
- Source table of ID form: LU_REGION;
- ID form expression: LU_REGION.
- Source table Desc form: LU_REGION;
- Desc form expression: ApplySimple("CASE WHEN #0=1 THEN #1 ELSE ' ' END", , )

Note: This expression means that when COUNTRY_ID is not 1, the Desc form for Region_Test will be ' '.
Region_Test Where DESC is Null. Font color in red.

CAUSE:
In following form expression, notice that there is space between the quotation after ELSE statement. The engine will treat it as a space instead of NULL value.
ApplySimple("CASE WHEN #0=1 THEN #1 ELSE ' ' END", , ).
ACTION:
Two workarounds can be taken to resolve this issue.

ApplySimple("CASE WHEN #0=1 THEN #1 ELSE NULL END", , ).