Forum Discussion
matthewtjy
Helper I
5 years agoGetting MAX value IF 2 conditions are met
Hi, how do I go about to create a column "Max_Value_Of_Latest_Submit_Dt" where it would calculate the MAX Sales corresponding to the Latest_Submit_Dt for the particular Employee? In excel I would...
- 5 years ago
Sorry,
the above was for the calculated measure.
I posted one more reply that is for the calculated column.
Jihwan_Kim
Super User
5 years agoHi, matthewtjy
Sorry for the confuse.
For creating column,
please try below.
Max Sales of Last Submit Date Column =
VAR lastsubmitdate =
CALCULATE( MAX ( 'Table'[Latest_Submit_Dt] ), ALLEXCEPT ( 'Table', 'Table'[Employee] ))
RETURN
CALCULATE (
MAX ( 'Table'[Sales] ),
ALLEXCEPT ( 'Table', 'Table'[Employee] ),
'Table'[Submit_Dt] = lastsubmitdate
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.