Forum Discussion
sdaniels
8 years agoRegular Visitor
Finding the highest Date in a record
Community, I'm stumped on this one. I have a series of projects that have 4 date records associated with them. I need to create a measurement that computes the number of days between the activc...
- 8 years ago
How abou this calculated column
= DATEDIFF ( MAXX ( FILTER ( UNION ( ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Sold Date] ) ) ), ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Advised Date] ) ) ), ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Quoted date] ) ) ) ), [MyDates] <= Table1[Activation Date] ), [MyDates] ), Table1[Activation Date], DAY )
Zubair_Muhammad
Community Champion
8 years ago
How abou this calculated column
=
DATEDIFF (
MAXX (
FILTER (
UNION (
ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Sold Date] ) ) ),
ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Advised Date] ) ) ),
ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Quoted date] ) ) )
),
[MyDates] <= Table1[Activation Date]
),
[MyDates]
),
Table1[Activation Date],
DAY
)pxg08680
Resolver III
8 years ago