Forum Discussion

Mahmoodul's avatar
Mahmoodul
Icon for Helper I rankHelper I
4 years ago
Solved

Need to calculate single column from multiple column based on MAX ETA

I need to calculate Top most part based on Max eta(eta is nothing but date coulnm), Please, Can anyone help me

Below output will be required

  • Mahmoodul , for date you can use Max - ETA

     

    Comment you can have measure like

     

    Measure =
    VAR __id = MAX ('Table'[top_most_part] )
    VAR __date = CALCULATE ( MAX('Table'[eta] ), ALLSELECTED ('Table' ), 'Table'[top_most_part] = __id )
    CALCULATE ( Max ('Table'[comments] ), VALUES ('Table'[top_most_part] ),'Table'[top_most_part] = __id,'Table'[eta] = __date )

     

     

    OCB = Sum(Table[OCB])

2 Replies

  • Mahmoodul , for date you can use Max - ETA

     

    Comment you can have measure like

     

    Measure =
    VAR __id = MAX ('Table'[top_most_part] )
    VAR __date = CALCULATE ( MAX('Table'[eta] ), ALLSELECTED ('Table' ), 'Table'[top_most_part] = __id )
    CALCULATE ( Max ('Table'[comments] ), VALUES ('Table'[top_most_part] ),'Table'[top_most_part] = __id,'Table'[eta] = __date )

     

     

    OCB = Sum(Table[OCB])