Forum Discussion
Las
4 years agoFrequent Visitor
Calculation based on latest two dates
Hi Experts, I have a date column which populates based on fortnightly basis ( Fortnightly is 14 days but I receive the data earlier ). My calculation should be based on Max(date) and the previous...
- 4 years ago
amitchandak
4 years agoSuper User
Las , Measures
Max date = maxx(allselected(Table), Table[Date])
2nd Max date = maxx(filter( allselected(Table), Table[Date] < [Max Date]) , Table[Date])
or
Max date = maxx(all(Table), Table[Date])
2nd Max date = maxx(filter( all(Table), Table[Date] < [Max Date]) , Table[Date])