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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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