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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.