Forum Discussion
_Kelz0484
1 year agoFrequent Visitor
Latest date with a clause
Hi, Bit of an odd one! I have a dataset which includes 2 x date columns, 'test date' and 'concessed date' I would like to create a new column called 'master date' which looks at the other 2 columns ...
- 1 year ago
SWITCH ( TRUE (), ISBLANK ( 'Table'[Concessed Date] ) && ISBLANK ( 'Table'[Test Date] ), TODAY(), ISBLANK ( 'Table'[Concessed Date] ), 'Table'[Test Date], ISBLANK ( 'Table'[Test Date] ), 'Table'[Concessed Date], 'Table'[Concessed Date] < 'Table'[Test Date], 'Table'[Concessed Date], MAX ( 'Table'[Test Date], 'Table'[Concessed Date] ) )If this now works, please accept as the solution for others with the same challenge.
mark_endicott
Super User
1 year ago
SWITCH (
TRUE (),
ISBLANK ( 'Table'[Concessed Date] ) && ISBLANK ( 'Table'[Test Date] ), TODAY(),
ISBLANK ( 'Table'[Concessed Date] ), 'Table'[Test Date],
ISBLANK ( 'Table'[Test Date] ), 'Table'[Concessed Date],
'Table'[Concessed Date] < 'Table'[Test Date], 'Table'[Concessed Date],
MAX ( 'Table'[Test Date], 'Table'[Concessed Date] )
)
If this now works, please accept as the solution for others with the same challenge.
_Kelz0484
1 year agoFrequent Visitor
Hi mark_endicott
That's perfect - exactly what I was looking for!
Thanks so much for your help.