The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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...
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
120 | |
85 | |
75 | |
55 | |
44 |
User | Count |
---|---|
136 | |
128 | |
78 | |
64 | |
63 |