Forum Discussion

GeekAlfPro's avatar
GeekAlfPro
Icon for Helper V rankHelper V
5 years ago
Solved

Get max hour from max date

Hello,   I have a report wherein I want to post the last purchase on a website. So I have inserted a card and a filter on the most recent one. It works for the date. but now I want to display th...
  • amitchandak's avatar
    5 years ago

    GeekAlfPro , Try a new measure

     

    new measure =
    var _date =maxx(allselected(Table), Table[Date])
    return
    calculate(max(Table[Time]), filter(Table, Table[Date] =_date))

     

     

    Or create a new column
    datetime = [Date]+time

     

    then use measure = maxx(allselected(Table), Table[Datetime])