Forum Discussion

kattlees's avatar
kattlees
Icon for Post Patron rankPost Patron
7 years ago
Solved

DAX help - Get latest value for each ID

I have a table (sample data below) that has Customer # Ans Code Date Entered Time Entered Answer   What I am looking for is to get the LATEST answer nentered based on the Ans Code. In the exam...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Mh not that easy. 

    What you could try

    1) duplicate your table

    2) concatenate date and time

    2) group by customer and ans code and find the Max date+time (this will generate a new table with only the row with max date for each customer+ans)

    3) now use MERGE of these two tables using a inner join

     

    SHOULD work, but have never tried