Forum Discussion
First Expiry Date in a column
It's better to show the desired result when you post a question.
Do you want the name, earliest expiry and then the document from the row that matches that date?
If so,
put name in a table, drag the date in and aggregate with Earliest, then create a measure:
MeasureT =
var _minDate = MIN(TableL[Expiry Date])
RETURN
CALCULATE (
MIN ( TableL[Document]),
KEEPFILTERS( TableL[Expiry Date] = _minDate )
)- Emma22 years agoFrequent Visitor
Hi,
Thank you for you help. This works however only brings up 1 result.
I need to get the first expiry date for each name and stating the document.
So if data was as below; I need to return the first doc to expire for Name 1, the first doc to expire for Name 2 and so on.
Name Document Expiry Date
Name 1 Doc 1 07/09/2025
Name 1 Doc 2 18/09/2026
Name 1 Doc 3 24/05/2025
Name 2 Doc 1 15/08/2024
Name 2 Doc 2 30/11/2023
Name 3 Doc 3 25/01/2025
Thank you