Forum Discussion
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
- amitchandak
Super User
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])
- Mahmoodul
Helper I
amitchandak : Thank you for reply, Its working fine for me.Thanks alot.