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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Filter Max time per day

Krkrang_0-1657097578381.png

How can I filter the day and night per day to only show the latest data. I have tried filter by last min/hr but it does not work for my data.

 

The data that comes in from the source only includes personel that is present. The Date coming in because of it comes from the powerapp, each row is populated at different time, so i have rounded it to the nearest 5 minutes since one submittion takes less than 5 minutes. 

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

Hi, @Anonymous 

Add a measure like:

flag =
VAR _maxtime =
    CALCULATE (
        LASTNONBLANK ( 'Table'[DateTime], 1 ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Date] = MAX ( 'Table'[Date] )
                && 'Table'[Name] = MAX ( 'Table'[Name] )
        )
    )
RETURN
    IF ( MAX ( 'Table'[DateTime] ) = _maxtime, 1, 0 )

Then apply this measure to the table filter pane:

veasonfmsft_0-1657525432223.png

Best Regards,
Community Support Team _ Eason

 

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Add a measure like:

flag =
VAR _maxtime =
    CALCULATE (
        LASTNONBLANK ( 'Table'[DateTime], 1 ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Date] = MAX ( 'Table'[Date] )
                && 'Table'[Name] = MAX ( 'Table'[Name] )
        )
    )
RETURN
    IF ( MAX ( 'Table'[DateTime] ) = _maxtime, 1, 0 )

Then apply this measure to the table filter pane:

veasonfmsft_0-1657525432223.png

Best Regards,
Community Support Team _ Eason

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.