Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Find blanks in text field

I tried to use the expression

count(IF(text=' ',items))  to find all items where the text field is blank - but?????????????????????????

1 Solution

Accepted Solutions
manuelreimitz
Partner - Contributor III
Partner - Contributor III

=count(if(len(trim(text)) = 0, item))

do the "trim" operation in load script and flag the dataset!

LOAD

     id,

     text,

     f(len(trim(text)) = 0, 0, 1) as EmptyFlag,

     item

RESIDENT Table:

View solution in original post

2 Replies
manuelreimitz
Partner - Contributor III
Partner - Contributor III

=count(if(len(trim(text)) = 0, item))

do the "trim" operation in load script and flag the dataset!

LOAD

     id,

     text,

     f(len(trim(text)) = 0, 0, 1) as EmptyFlag,

     item

RESIDENT Table:

Not applicable
Author

Hurra - it works