Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
MarkLuckett
Contributor II
Contributor II

Return Maximum date from field which is in current month

Hi,

I'm pulling out the maximum date from a data load and want to return the maximum date from data which is in current month. How do I amend this expression? Max([Posting Date]) - Posting date being the field

Labels (2)
1 Solution

Accepted Solutions
Bunim
Contributor III
Contributor III

Max({<Month={$(=month(today()))}>}[Posting Date]

View solution in original post

4 Replies
Or
MVP
MVP

Max(If(Monthname([Posting Date]) = Monthname(Today()),[Posting Date])) should work here, I believe. Note that if no values of Posting Date exist for the current month, this will return null.

Bunim
Contributor III
Contributor III

Max({<Month={$(=month(today()))}>}[Posting Date]

MarkLuckett
Contributor II
Contributor II
Author

Great, thanks for your help. This would perfectly.

MarkLuckett
Contributor II
Contributor II
Author

Hi, unfortunately this returned the same values.