Skip to main content

New to Qlik Sense

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

Announcements
NEW webinar Dec. 7th: 2023 Outlook, A Pivotal Year for Data Integration SIGN ME UP!
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)