This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
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...
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 23 | |
| 20 | |
| 19 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 56 | |
| 56 | |
| 42 | |
| 26 | |
| 24 |