Forum Discussion
Select the Max Value between 4 Cells
Dear,
I have the following data table:
CURRENT STATE DATE1 DATE2 DATE3
On-going May 21 Jun 21 Ago 21
Late APR 20 Jun 20
[Blank] APR 20 Jun 20
On-going Jan 21 Feb 21
I would like to have a new column that take the max value between DATE1, DATE2 and DATE3 when CURRENT STATE is not Empty, so:
CURRENT STATE DATE1 DATE2 DATE3 New Value
On-going May 21 Jun 21 Ago 21 Ago 21
Late APR 20 Jun 20 Jun 21
[Blank] APR 20 Jun 20 [Blank]
On-going Jan 21 Feb 21 Feb 21
Thank you!!!!
LD
Something like this;
Max Value = VAR ValueTable = UNION( ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,[Measure1]) ) RETURN MAXX(ValueTable,[Value])
1 Reply
- stevedep
Memorable Member
Something like this;
Max Value = VAR ValueTable = UNION( ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,SUM(Data[Revenue])), ROW(“Value”,[Measure1]) ) RETURN MAXX(ValueTable,[Value])