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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
brunolelli87
Creator II
Creator II

How many rows I have between two dates

Dears,

How can I get the number of rows I have of the field (Fechamento), between Today() and Today - 1 Year?

 

DateFechamento
12/05/20202
12/04/20203
12/02/20204
13/01/20205
14/11/20197
15/10/20196
15/09/20196
17/07/20198
17/06/20199
18/05/20192
18/04/20191

 

IN this example, I'm expecting 10 as result!

In other words, how can I get the number, of values between two dates? How can I count the quantity, not the total, of values between today and one year ago?

 

Thanks 

1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try this:

count({<Date = {">=$(=addyears(today(),-1))<$(=today())"}>} Fechamento)

View solution in original post

2 Replies
Vegar
MVP
MVP

Try this:

count({<Date = {">=$(=addyears(today(),-1))<$(=today())"}>} Fechamento)

brunolelli87
Creator II
Creator II
Author

Perfect Vegar!

You are the best...