
Contributor
2020-03-31
01:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get a use the maximum date of each given year in a set expression
Hi I am looking for the following output
Year | MaxDate | Sales on MaxDate
2020 | 31/03/2020 | 10
2019 | 31/12/2019 | 20
2018 | 31/12/2018 | 30
I can't get to a formulation/set analysis that allows me to use the maxdate in the set analysis.
Please advice.
617 Views
1 Solution
Accepted Solutions

MVP
2020-04-01
06:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Harsha,
Try like below
Sum({<Date={$(=Chr(39)&Concat(Aggr(Date(Max(Date)),Year),chr(39)&','&chr(39))&chr(39))}>}Sales)
Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Please close the thread by marking correct answer & give likes if you like the post.
1 Reply

MVP
2020-04-01
06:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Harsha,
Try like below
Sum({<Date={$(=Chr(39)&Concat(Aggr(Date(Max(Date)),Year),chr(39)&','&chr(39))&chr(39))}>}Sales)
Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Please close the thread by marking correct answer & give likes if you like the post.
