Forum Discussion
AtharNoraiz
7 years agoFrequent Visitor
difference between rows of a date column
how i can calculate difference b/w rows of a Task date column as calculated column
- 7 years ago
Hi AtharNoraiz,
Add an index column first in Query Editor mode.
Then, create a calculated column with below DAX.
Datediff = DATEDIFF ( CALCULATE ( MAX ( Table4[Task Date] ), FILTER ( Table4, Table4[Index] = EARLIER ( Table4[Index] ) - 1 ) ), Table4[Task Date], DAY )Best regards,
Yuliana Gu
v-yulgu-msft
7 years agoMicrosoft Employee
Hi AtharNoraiz,
Add an index column first in Query Editor mode.
Then, create a calculated column with below DAX.
Datediff =
DATEDIFF (
CALCULATE (
MAX ( Table4[Task Date] ),
FILTER ( Table4, Table4[Index] = EARLIER ( Table4[Index] ) - 1 )
),
Table4[Task Date],
DAY
)
Best regards,
Yuliana Gu
AtharNoraiz
7 years agoFrequent Visitor
thanks works perfect