Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

conditional display of rows in a straight table

Ihave npot been on training yet so I m sure this is simple

i need to generate a table that only displays active employees with an absence that is either has no end date or an end date after today

i have two calculated dimensions in this table

=IF(IsNull(\Employee.EndDate)=-1 and Len(EmployeeNo)=6 and IsNull(\UNAVAILABLE.UNAVAIL_ID)=0,ContactClockNo,'Inactive')

=IF(IsNull(\Employee.EndDate)=-1 and Len(EmployeeNo)=6 and IsNull(\UNAVAILABLE.UNAVAIL_ID)=0,\UNAVAILABLE.UNAVAIL_ID,'Inactive')

if itry to add IsNull(\UNAVAILABLE.EndDate)=-1 then the Inactive rows are diaplayed

any help would be appreciated









1 Solution

Accepted Solutions
Not applicable
Author

Hi,

because sometimes the proof of nullvalues can be misleading, I am using instead any null()-function the LEN()-function. If your field is empty or null, LEN() will return 0, else the length of the content:

=IF( LEN(\Employee.EndDate)=0 and Len(EmployeeNo)=6 and LEN(\UNAVAILABLE.UNAVAIL_ID)>0


HtH

Roland

View solution in original post

3 Replies
Not applicable
Author

Hi,

because sometimes the proof of nullvalues can be misleading, I am using instead any null()-function the LEN()-function. If your field is empty or null, LEN() will return 0, else the length of the content:

=IF( LEN(\Employee.EndDate)=0 and Len(EmployeeNo)=6 and LEN(\UNAVAILABLE.UNAVAIL_ID)>0


HtH

Roland

Not applicable
Author

Roland thanks that seems to be working but i have one other question

the ENDDATE field is formatted dd/mm/yy hh:mm:ss

and i have no idea how i could construct th expression to include any endate after TODAY

apprecaite any help

Not applicable
Author

sorted this thanks