Alteryx Designer Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.
SOLVED

IN-DB Filter Tool 's behavior

aYaNe_o
6 - Meteoroid

   Dataset:It includes flags in column ; flags' value can be 0,1, or null.

AlteryxTool:IN-DB Filter

Description:flag = 1

 

In the above case, the result is...

 TRUE side has rows which have flag=1,

 FLASE side has rows which have flag=0. 

SO, there're no rows which have flag=null...

 

 Is this a bug in Alteryx? or Specification??

9 REPLIES 9
alexnajm
17 - Castor
17 - Castor

I am unsure of the question, but this will likely depend on your datatype - if it's a Boolean (aka bool), in most cases there's only 1 or 0 available. I would check your databases settings on data types, and confirm what you need out of it.

aYaNe_o
6 - Meteoroid

Thank you for your reply :)

This time, the data type of the flag was set to double.

aYaNe_o
6 - Meteoroid

I would like to know if the IN-DB filter tool(Flase side) does not detect NULL values.

 

If anyone knows, please let me know...

simonaubert_bd
13 - Pulsar

Hello @aYaNe_o 

in-db filter works just like the SQL in a where clause of your database.

Best regards,

Simon

alexnajm
17 - Castor
17 - Castor

@simonaubert_bd is on the money - if you want it to detect nulls, you need the expression to capture that!

simonaubert_bd
13 - Pulsar

By the way, I see the topic is in designer cloud. Are you sure that's the case? O_o

aYaNe_o
6 - Meteoroid

@simonaubert_bd  @alexnajm 

Thanks for your replies...!

When column have NULL values, I would like to be careful to capture it.

aYaNe_o
6 - Meteoroid

@simonaubert_bd 

> I see the topic is in designer cloud. 

I asked the question in the wrong place...

It should be in the Designer Desktop or General.

simonaubert_bd
13 - Pulsar

@aYaNe_o 

Can you try something like that ?

(flag = 1) or (flag is null)

 
Best regards,

Simon

PS : if you're into in-database, please have a look on the ideas ;)  https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Ideas/idb-p/product-ideas/label-name/categ...

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!