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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Evan0211
Creator II
Creator II

KPI comparing two date fields in a table

I am working with a table that has two date fields [Initial Date] and [Completed Date].  I have a KPI set to show what dates are upcoming (within the next 7 days):

=Count({$<[Initial Date] = {">=$(=timestamp(now()))<=$(=timestamp(now() + 7))"} [Title])

This works as intended and shows the count of Initial Dates coming up in the next 7 days, but now I need to also check to see if the [Completed Date] has been populated and, if it has, don't count it.  How could I accomplish this?

Thanks in advance. 

1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

=Count({$<[Initial Date] = {">=$(=timestamp(now()))<=$(=timestamp(now() + 7))"}, [Completed Date] = {"=len([Completed Date])>0"} >} [Title])

View solution in original post

1 Reply
stevejoyce
Specialist II
Specialist II

=Count({$<[Initial Date] = {">=$(=timestamp(now()))<=$(=timestamp(now() + 7))"}, [Completed Date] = {"=len([Completed Date])>0"} >} [Title])