Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression help

Im trying to make an expression from a list of dates.

I want to count all items from last year, - so something like this

count   (if(year(DATE)-1, ITEMS))

but this doent work???

3 Replies
manideep78
Partner - Specialist
Partner - Specialist

Try this,

Count({<Year={">=$(=Year(DATE)-1)"}>}items)

Not applicable
Author

Try tihis ,

Count ( {<Year(MyDateField)={'>=$(=Year(Today())-1)'} >} ITEMS)

//yusuf

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=Count({<Date={">=$(=YearStart(Max(Date)))<=$(=Max(Date))"}>}items)

Hope this helps you.

Regards,

Jagan.