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: 
Not applicable

Set Analysis Count values over 20 days

Hi,

I'm hoping somebody can assist with the following expression:

=count({$<Skill={'1'}, NewOld={'Old'}, Role={'3'}, Active={'Y'}, Date={'=date(today()-20,'dd/mm/yyyy''}>})distinct(ID))

I'm trying to count the number of unique IDs where the latest date is over 20 days, how can I do this? the above formula that I tried doesn't work.

Best

Mav

1 Solution

Accepted Solutions
sunny_talwar

May be this:

=Count({$<Skill={'1'}, NewOld={'Old'}, Role={'3'}, Active={'Y'}, Date={"$(='<=' & Date(Today() - 20, 'DD/MM/YYYY'))''}>} Distinct ID)

View solution in original post

5 Replies
sunny_talwar

May be this:

=Count({$<Skill={'1'}, NewOld={'Old'}, Role={'3'}, Active={'Y'}, Date={"$(='<=' & Date(Today() - 20, 'DD/MM/YYYY'))''}>} Distinct ID)

maxgro
MVP
MVP

=sum({<

     Skill={'1'}, NewOld={'Old'}, Role={'3'}, Active={'Y'},

     Date={"$(=date(today()-20, 'DD/MM/YYYY'))"}

     >} distinct ID)

or

=sum({<

     Skill={'1'}, NewOld={'Old'}, Role={'3'}, Active={'Y'},

     Date={"<=$(=date(today()-20, 'DD/MM/YYYY'))"}

     >} distinct ID)

Anonymous
Not applicable
Author

may be this, some syntax missing?

=count({<Date=, Skill={'1'}, NewOld={'Old'}, Role={'3'}, Active={'Y'},

Date={'=$(=date(today()-20,'dd/mm/yyyy'))'} >} distinct(ID))

Make sure format of Date should be 'dd/mm/yyyy'

sunny_talwar

mm is for minutes Balraj. You will need to use MM here

jonathandienst
Partner - Champion III
Partner - Champion III

Looks OK to me,except that the date format is incorrect

date(today()-20,'dd/mm/yyyy''}


mm is minutes, you need MM in months

date(today()-20,'dd/MM/yyyy''}


I suggest that you test these sub expressions in a text box; That will help you debug the expression.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein