Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Join us March 10th, 7 ways modern analytics can help you take smarter action. REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
MPS
Contributor
Contributor

Set Analysis 'Includes blank'

Need help with the below expression. I want to include the blanks from the field name 'Active End Date'. This field has Dates and rest as blanks. 

the below expression does select the date with dates, if i remove 'not equals'. 

Sum({<Active__c={'1'},[Property Record Type]={'Office'}
,Active_End_Date-={"*"}>} distinct [Usable Area])

 

Labels (1)
12 Replies
agigliotti
Partner
Partner

Hi @MPS ,

The statement   Active_End_Date -= {"*"}  will exclude all field values.

Instead    Active_End_Date = {"*"}  will exclude only null values in the field.

I hope it can help.

Best Regards

Chanty4u
Champion III
Champion III

try this

How about checking isnull() and update it to 0 

like If(Field=Null(),0,Fieldas Field1

 

or

script

if(len(Trim(Field)=0,0,Field) AS Field1

MPS
Contributor
Contributor

Hi @agigliotti 

Thanks for your response. 

I actually want to include the Null values. I used 'Active_End_Date = {"*"}' which included the dates  record, and excluded null values. 

Infact i need the opposite, to exclude the values and read only null values. 

Hope i didnt confuse you. 

 

 

 

 

Chanty4u
Champion III
Champion III

can you try this

Sum({1-< _Field1= {'*'} >} UsableArea )

agigliotti
Partner
Partner

let's try with this:

=Sum( distinct {< Active__c = {'1'}, [Property Record Type] = {'Office'} >} if(isnull(Active_End_Date), [Usable Area] ) [Usable Area] )

saran7de
Master
Master

Try like this,

Sum({<Active__c={'1'},[Property Record Type]={'Office'}
,[Usable Area]={"=IsNull(Active_End_Date)"}>} distinct [Usable Area])
MPS
Contributor
Contributor

Hi @Chanty4u ,

Thank you for your response.

can you please help me to write the full expression to the below by adding your script shared

Sum({<Active__c={'1'},[Property Record Type]={'Office'}
,Active_End_Date-={"*"}>} distinct [Usable Area])

Chanty4u
Champion III
Champion III

first try this if it is working 

Sum({1-<,Active_End_Date={"*"}>} distinct [Usable Area])

 

then add this

Sum({1-<,Active_End_Date={"*"},Active__c={'1'},[Property Record Type]={'Office'}>} distinct [Usable Area])

and try to keep this in script

NullAsValue  Active_End_Date;

Set NullValue = 'NULL'; 

 

MPS
Contributor
Contributor

Got Error in expression