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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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