Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Syntax for empty

sbb
7 - Meteor

What is the syntax to custom filter a field for all of the values that are empty (blank)? I tried ISEMPTY([GROUP_ID]), but it didn't work. 

 

 

6 REPLIES 6
michael_treadwell
ACE Emeritus
ACE Emeritus

ISEMPTY will only match NULL fields and fields that equal ''

 

To match NULL fields, fields that equal '', or fields that contain only spaces, try this in the formula tool

 

REGEX_Match([test_string], '\s*')

jdunkerley79
ACE Emeritus
ACE Emeritus
 
jdunkerley79
ACE Emeritus
ACE Emeritus

I'd go for 

IsNull([Group_ID]) OR Trim([Group_ID])=''

 assuming you want both nulls and whitespace

sbb
7 - Meteor

I filtered with GROUP_ID = "" and this seemed to work. 

sbb
7 - Meteor

thank you for the suggestions guys.

Aaron_dup_9
7 - Meteor

I would still add the NULL check as well just in case there are some in there or there might be some in there in the future.

Labels