Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a date/time column in my table. I want a new column that will calculate the elapsed time in minutes between rows. For example, the first row in the new column based on data in the screenshot below would be 30. Row 2 would be 23. Row 3 would be 7.
How do I do this? With DAX by adding a new column in the Excel data model? Or by adding a Custom Column in Query Editor? Either/or, I'd need the specific formula/statement spelled out for me to make it work.
Any help would be appreciated.
Solved! Go to Solution.
you can use advice from @ImkeF on how to reference previous row in M
https://www.thebiccountant.com/2018/07/12/fast-and-easy-way-to-reference-previous-or-next-rows-in-po...
then you can just subtract one column from another, set its type to duration and remove the previous date column
you can use advice from @ImkeF on how to reference previous row in M
https://www.thebiccountant.com/2018/07/12/fast-and-easy-way-to-reference-previous-or-next-rows-in-po...
then you can just subtract one column from another, set its type to duration and remove the previous date column
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |