Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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...
User | Count |
---|---|
117 | |
75 | |
62 | |
50 | |
44 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |