Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

dmv15956
Contributor

Excluding NULL & -ve Values

Hi,

I am trying to do set analysis in Strange table to exclude date which are blank & Day Rem which are in negative.

=Count({<[User ID]={'=Len(Trim([Complete Date]))=0'},[Days Rem]={"<=0"}>}[User ID])

But in not get required result.

1 Solution

Accepted Solutions
MVP
MVP

Re: Excluding NULL & -ve Values

Your field name is Completed Date and not complete date

=Count({<[User ID]={"=Len(Trim([Completed Date]))=0"},[Day Rem]={"<=0"}>}[User ID])

10 Replies
aarkay29
Valued Contributor

Re: Excluding NULL & -ve Values

May be this


Count({<[User ID]-={'=Len(Trim([Complete Date]))=0'},[Days Rem]-={"<=0"}>}[User ID])

MVP
MVP

Re: Excluding NULL & -ve Values

May be this

=Count({<[User ID] = {"=Len(Trim([Complete Date]))>0"}, [Days Rem]={">0"}>} [User ID])

dmv15956
Contributor

Re: Excluding NULL & -ve Values

No Result

Example Data

 

User IDCompleted DateDay Rem
1231-Dec-1650
124 30
1251-Dec-1620
126 -2
127 -4
1281-Dec-160
129 0
1301-Dec-160
131 -48

I Need count as 4

   

User IDCompleted DateDay Rem
126 -2
127 -4
129 0
131 -48
roharoha
Valued Contributor III

Re: Excluding NULL & -ve Values

is your [Days Rem] field really numerical?

you could try

LOAD

...

num(num#([Days Rem])) as [Days Rem],

...

dmv15956
Contributor

Re: Excluding NULL & -ve Values

Yes I did converted dates to dated format and number to number format.

MVP
MVP

Re: Excluding NULL & -ve Values

Would you be able to share your app?

roharoha
Valued Contributor III

Re: Excluding NULL & -ve Values

does every "User ID" have exactly 1 "completed Date"?

dmv15956
Contributor

Re: Excluding NULL & -ve Values

Please find App And Excel File.

MVP
MVP

Re: Excluding NULL & -ve Values

Your field name is Completed Date and not complete date

=Count({<[User ID]={"=Len(Trim([Completed Date]))=0"},[Day Rem]={"<=0"}>}[User ID])