Forum Discussion

maserr's avatar
maserr
Helper IV
6 years ago
Solved

Filter column by another column

Hi there,

 

I have a table with several fields. One of them is the date and another one is the time. I need to filter the table to retrieve the last date and the last time of this date. I am using FILTER function and LASTDATE to filter the table and using LASTNOTBLANK to get the last time, but this last function has to be applied on the field already filtered.

 

How can I achieve this?

 

Thanks,

  • Hi maserr

     

    Try the measure as below:

    LastHourLastDay = 
    CALCULATE(MAX('Table'[Value2]),FILTER(ALL('Table'),'Table'[Value1]=MAXX(ALL('Table'),'Table'[Value1])))

    And you will see:

    For the related .pbix file,pls see attached.

     

    Best Regards,
    Kelly
    Did I answer your question? Mark my post as a solution!

7 Replies