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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dthompsonKairos
Helper II
Helper II

Get value of column in a group based on the min value of another column in that group

I apparently cannot adequately formulate a search term to get what I want so I'm posting this. And to save time, it can be boiled down to a picture:

dthompsonKairos_1-1748886702283.png

 

 

Simply put, I want to retrieve the value of the third column, from the group based on the left column, for the earliest date in the second column.

 

A measure would be fine. I could also do a calculated table.

 

I've tried many of the proposed solutions but none seem to work the way I need.

 

The table itself is not previously grouped.

 

1 ACCEPTED SOLUTION
ajaybabuinturi
Memorable Member
Memorable Member

Hi @dthompsonKairos,
I am not what your looking for. I am assuimg you need to find the lowest/last Period KPI value based on KPI.
You can try below formula

Earliest KPI Value = 
VAR EarliestDate =
    CALCULATE(
        MIN('Table'[PERIOD]),
        ALLEXCEPT('Table', 'Table'[KPI])
    )
RETURN
    CALCULATE(
        MAX('Table'[KPI_VALUE]),  -- Use MAX if date is unique per KPI
        'Table'[PERIOD] = EarliestDate
    )

 

Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.

View solution in original post

1 REPLY 1
ajaybabuinturi
Memorable Member
Memorable Member

Hi @dthompsonKairos,
I am not what your looking for. I am assuimg you need to find the lowest/last Period KPI value based on KPI.
You can try below formula

Earliest KPI Value = 
VAR EarliestDate =
    CALCULATE(
        MIN('Table'[PERIOD]),
        ALLEXCEPT('Table', 'Table'[KPI])
    )
RETURN
    CALCULATE(
        MAX('Table'[KPI_VALUE]),  -- Use MAX if date is unique per KPI
        'Table'[PERIOD] = EarliestDate
    )

 

Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.

Helpful resources

Announcements
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!

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.

Top Solution Authors