Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis: Where Year < Max(Year)

I am trying to write set analysis to calculate for items where the Year(date) on the line level is < Max(Year(Date))

Not much to show as of yet so all recommendations are welcomed.

Thank you,

- dave

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Count( DISTINCT {<Date = {"=Year(Date)<$(=Max(Year(Date)))"}>} Item#)

View solution in original post

3 Replies
Anonymous
Not applicable
Author

To clarify:

For instance

Item#,Date

1, 1/15/2014

2, 2/10/2014

3, 2/11/2016

4, 3/04/2016

5, 7/23/2015

I want  to only count items where the year of the date field is less than the max year of the whole date field.

In the example above I would only want to count item # 1,2 and 5

swuehl
MVP
MVP

Count( DISTINCT {<Date = {"=Year(Date)<$(=Max(Year(Date)))"}>} Item#)

Anonymous
Not applicable
Author

thank you!