Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

summarize table and add new columns

Apologies for the poor formating of this post, I am having web page issues. I will separate paragraphs with #-#. #-# I have a tall table composed of an ID, status, and the date the ID entered the stat...
  • v-piga-msft's avatar
    v-piga-msft
    7 years ago

    Hi Anonymous,

     

    For your logic, you could try this measure below.

     

     

    currency =
    VAR maxdate =
        CALCULATE ( MAX ( 'Table1'[DATE] ), ALLEXCEPT ( Table1, Table1[ID] ) )
    RETURN
        CALCULATE ( MAX ( 'Table1'[Status] ), FILTER ( 'Table1', 'Table1'[date] = maxdate ) )
    

    In addition, it seems that your desired output is like a matrix in Power BI. 

     

    However, I'm afraid that we may not achieve that the same output like your desired output in Power BI. 

     

    The most we can achieve is like below.

     

     

     

    You also could have a reference of the attachment.

     

    Best  Regards,

    Cherry