Forum Discussion

Steven_Wu's avatar
Steven_Wu
Frequent Visitor
3 years ago
Solved

How could I transform the table based on date and specific column at the same time with DAX?

Hi, All, I have a dataframe as follow. There are 2 players' training records. For calculating and present the current completion status, I have to filter the current table based on the Status and L...
  • barritown's avatar
    3 years ago

    Hi Steven_Wu,

    You could try creating a new table in Table Tools via this code:

    In plain text:

    Table = SUMMARIZE ( 
        data, 
        [Player], 
        [Activity Name], 
        "Completion Date", 
        MAX ( data[Completion Date] ),
        "Status", 
        IF ( "Completed" IN VALUES ( data[Status] ), "Completed", "Incompleted" )
     )

     

    Best Regards,

    Alexander

    My YouTube vlog in English

    My YouTube vlog in Russian