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

View all the Fabric Data Days sessions on demand. View schedule

Reply
AnonGAUser
New Member

Create a new Measure for Date that will look for lowest running time in table

Hi, I have a table(allruns) and I want to create a Measure to look for the lowest running time in the table, after a specified date(01/01/2022) and then give me that date to use in a card.  So, in my example, I am looking for the measure to locate the lowest run time after 01/01/2022, which would be 86.97 on the botton row and I want it to return to me the date, whcih is 8/16/25 in this example.  

 

This is the expression I have created from info found online, but it isn't working correctly:

 

Fastest 10k run after 2021 =
CALCULATE(
    MIN(allruns[date]),
    FILTER(
        allruns,
        allruns[time] = CALCULATE(
            MIN(allruns[time]), FILTER(allruns,
            allruns[date] >= 1/1/2025  
        )
    )
)
)

 

Is anyone able to come up with an expression that will work properly?  thanks

 

Table(allruns):

AnonGAUser_0-1758127099450.png

 

1 ACCEPTED SOLUTION
Royel
Solution Sage
Solution Sage

Hi @AnonGAUser  you can try this 

Date with Min Runtime = 
VAR MinRunTime = 
    CALCULATE(
        MIN(allruns[Runtime]),
        allruns[Date] > DATE(2022,1,1)
    )
VAR EarliestDateWithMinTime = 
    CALCULATE(
        MIN(allruns[Date]),
        allruns[Runtime] = MinRunTime,
        allruns[Date] > DATE(2022,1,1)
    )
RETURN
    EarliestDateWithMinTime

in this two stage dax, the goal is find the Min runtime first and then filter by runtime and date to get the exact date. 

Thanks 

If it helps give a like.  

View solution in original post

2 REPLIES 2
AnonGAUser
New Member

Thanks!  That helps so much!  

Royel
Solution Sage
Solution Sage

Hi @AnonGAUser  you can try this 

Date with Min Runtime = 
VAR MinRunTime = 
    CALCULATE(
        MIN(allruns[Runtime]),
        allruns[Date] > DATE(2022,1,1)
    )
VAR EarliestDateWithMinTime = 
    CALCULATE(
        MIN(allruns[Date]),
        allruns[Runtime] = MinRunTime,
        allruns[Date] > DATE(2022,1,1)
    )
RETURN
    EarliestDateWithMinTime

in this two stage dax, the goal is find the Min runtime first and then filter by runtime and date to get the exact date. 

Thanks 

If it helps give a like.  

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.

Top Solution Authors
Top Kudoed Authors