Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
DMG
Contributor III
Contributor III

Counting where one date field is less than another date field in the same row of data

Hi, is it possible to count the number of instances of where one date field in the record is less than another date field, for example

In table 1 i have

ID       Type       Date Occurred

1     A     01/03/2022

2     B     01/02/2022

In table 2 i have

Type        Expired Date

A              07/03/2022

B              12/02/2022

So qlik joins the row data by type, so all four fields are available in a table,

I want to count instances where the Date Occurred < Expired Date 

 

Thanks

Labels (4)
1 Reply
chaorenzhu
Creator II
Creator II

count({<[Date Occurred]={"<$([Expired Date])"}>} ID)