Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
how i can calculate difference b/w rows of a Task date column as calculated column
Solved! Go to Solution.
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
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
thanks works perfect
Use EARLIER. See my article on Mean Time Before Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.