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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jakeryan56
Advocate II
Advocate II

Latest Record by Date

I need to pull the latest "note" based on the "note_time" field.

Can someone share the best dax to use for this?

This can be either a measure or calcualted column in my fact_case table

Capture.PNG

3 REPLIES 3
RP_OFaustino
Helper I
Helper I

Life Saver!

ecfranko
New Member

worked perfectly!!!

VahidDM
Super User
Super User

Hi @jakeryan56 

 

Try this measure:

 

Latest Record = 
VAR _Lastdate =
    MAX ( fact_case[note_time] )
RETURN
    CALCULATE (
        MAX ( fact_case[note] ),
        FILTER ( fact_case, fact_case[note_time] = _Lastdate )
    )

 

 

output:

 

VahidDM_1-1632443482492.png

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos✌️!!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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