Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get the min Period of the max Year by using Set Analysis?

For example,

There are 24 periods, 200901,200902,.........200912,201001,201002,........201012

I want to get the min Period of the max Year by using Set Analysis .

1.max Year =>2010

2.min Period=>201001

How can I get it whatever selections be selected?

3 Replies
Anonymous
Not applicable
Author

Supplement:

There are 3 Field, Year,Period,Sales

I want to get sum(Sales) in min Period of max Year(201001).

Expression=sum({<?>} Sales)

edandurova
Contributor II
Contributor II

this works for me - maybe you can simplify:

sum({$<period={$(=min({$<period=P({<year={$(=max(year))}>})>} period))}>} sales)

Evgenia

Not applicable
Author

This should work, I don't know if it's any simpler:

Sum({<Period={$(=Min({<Year={$(=Max(Year))}>}Period))}>} Sales)