Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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 |
---|---|
121 | |
72 | |
71 | |
57 | |
50 |
User | Count |
---|---|
167 | |
83 | |
68 | |
65 | |
55 |