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
TomerIwanir1
Helper I
Helper I

Dax formula for early dates

Hi All, I have a data set that contain 3 columns (for the example)

Shipping ID, invoice number & invoice date, I want to create a calculeted column that will bring per each shipping ID the earliest date that assosiate with his invoices, pic below for the example, thx !

TomerIwanir1_0-1732563185198.png

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

@TomerIwanir1 

 

Download PBIX file with the example below

 

 

New Inv Date = 

VAR _id = [Shipping ID]

RETURN

CALCULATE(MINX('DataTable', 'DataTable'[Inv Date]), FILTER(('DataTable'), 'DataTable'[Shipping ID] = _id))

 

 

PhilipTreacy_0-1732576540137.png

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

@TomerIwanir1 

 

Download PBIX file with the example below

 

 

New Inv Date = 

VAR _id = [Shipping ID]

RETURN

CALCULATE(MINX('DataTable', 'DataTable'[Inv Date]), FILTER(('DataTable'), 'DataTable'[Shipping ID] = _id))

 

 

PhilipTreacy_0-1732576540137.png

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)