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
mrbuttons07
Helper II
Helper II

Show Latest Record that is available in the table

Hello everyone,

Good day to you.

I have a data model that looks like something below.

mrbuttons07_0-1711523060952.png

The data is keyed in by user upon their time and availability. Is it possible to have the visuals to show the latest records from the data model? The visual should be showing Monday 1st January 2024 data as that's the latest data that was keyed in by the user.

Thanks!

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @mrbuttons07 ,

I created a sample pbix file(see the attachment), please check if that is what you want.

1. Create a measure as below

Flag = 
VAR _seldate =
    SELECTEDVALUE ( 'Table'[Date] )
VAR _latestdate =
    CALCULATE (
        MAX ( 'Table'[Date] ),
        FILTER ( ALLSELECTED ( 'Table' ), NOT ( ISBLANK ( 'Table'[MUV (Actual)] ) ) )
    )
RETURN
    IF ( _seldate = _latestdate, 1 )

2. Create a table visual and apply a visual-level filter with the condition (Flag is 1)

vyiruanmsft_0-1711599404922.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @mrbuttons07 ,

I created a sample pbix file(see the attachment), please check if that is what you want.

1. Create a measure as below

Flag = 
VAR _seldate =
    SELECTEDVALUE ( 'Table'[Date] )
VAR _latestdate =
    CALCULATE (
        MAX ( 'Table'[Date] ),
        FILTER ( ALLSELECTED ( 'Table' ), NOT ( ISBLANK ( 'Table'[MUV (Actual)] ) ) )
    )
RETURN
    IF ( _seldate = _latestdate, 1 )

2. Create a table visual and apply a visual-level filter with the condition (Flag is 1)

vyiruanmsft_0-1711599404922.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.