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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
trcstuart
Frequent Visitor

How to return the earliest date/time among a subset of data in a table

Hi, 

 

This is my first post on this forum so if it can be improved in any way or in the wrong spot please let me know!

 

I have a table called 'REQUISITION CYCLE' that I created from another table. The relationships for this table look like this:

trcstuart_0-1694449417299.png

 

The 'REQUISITION CYCLE' table includes a field called 'ACTION_DATE' which lists the dates and times that 'actions' happened to the Requisitions. It also includes a field called 'STATUS' which lists the 'actions' that have occured (such as authorized, reviewed, etc.). What I would like to do is to create a new column called 'FIRST REVIEW' to capture the date/time that each Requisition is first reviewed (Requisitions can be reviewed multiple times).

 

Here is the DAX I have written so far:

trcstuart_1-1694451409702.png

 

Here is the data it is giving me:

trcstuart_2-1694451437166.png

 

The date being returned in the first review column is the earliest for the document but not the earliest for document, for the 'REVIEWED' status.

 

Any help would be much appreciated!'

 

Thanks, 

 

Tyler

 

 

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @trcstuart 

please try

First Review =
MINX (
FILTER (
CALCULATETABLE (
'Requisition Cycle',
ALLEXCEPT ( 'Requisition Cycle', 'Requisition Cycle'[Document_ID] )
),
'Requisition Cycle'[Status] = "REVIEWED"
),
'Requisition Cycle'[Action_Date]
)

View solution in original post

2 REPLIES 2
trcstuart
Frequent Visitor

Thanks @tamerj1 !! Worked perfectly! 

tamerj1
Super User
Super User

Hi @trcstuart 

please try

First Review =
MINX (
FILTER (
CALCULATETABLE (
'Requisition Cycle',
ALLEXCEPT ( 'Requisition Cycle', 'Requisition Cycle'[Document_ID] )
),
'Requisition Cycle'[Status] = "REVIEWED"
),
'Requisition Cycle'[Action_Date]
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.