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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jboggie46
New Member

find the earliest date based on two columns

I am trying to take the earliest date based on criteria from two other columns. I need to track systems as they complete control testing of subcontrols to satisfy the base control. See example below:

 

SystemControlsSubcontrolDate
linkac-1ac-1.21/15/2020
linkac-1ac-1.45/5/2021
linkac-1ac-1.95/6/2021
haltech  sc-2sc-2.32/20/2023
haltech  sc-2sc-2.42/20/2023
haltech  sc-2sc-2.74/2/2023

 

This is what I am trying to achieve:

SystemControlsSubcontrolDateEarliest test date
linkac-1ac-1.21/15/2020  1/15/2020
linkac-1ac-1.45/5/2021  1/15/2020
linkac-1ac-1.95/6/2021  1/15/2020
haltech sc-2sc-2.32/20/2023  2/20/2023
haltech sc-2sc-2.42/20/2023  2/20/2023
haltech sc-2sc-2.74/2/2023  2/20/2023
2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

=CALCULATE(MIN(Table1[Date]),FILTER(Table1,Table1[System]=EARLIER(Table1[System])&&Table1[Controls]=EARLIER(Table1[Controls])))

Hope this helps.

Ashish_Mathur_0-1700190168019.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ahmedx
Super User
Super User

pls try

Screenshot_2.pngScreenshot_3.png

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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