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 the following table:
I want to add a column that calculates the time difference in hours between each consecutive Updated Date column.
How do I do that?
Hi @Anonymous ,
I revised the previous reply, you can refer to it.
Best Regards,
Community Support Team _ kalyj
Hi @Anonymous ,
According to your description, here’s my solution.
1.Create a calculated column by the rank of UpdatedDate.
RANK = RANKX('Table','Table'[UpdatedDate],,ASC,Dense)
2.Calculates the time difference.
3.You can also use a card visual to display the sum of time difference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
How can the rankvalue be -1??
Hello @Anonymous ,
First create the order with RANKX and then you can do datediff where you filter the second time value rankvalue is -1
Hey @Anonymous
I actually want the Sum of all those differences of consecutive rows in a measure to display in a card visual.
How do I do the same?
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 |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 8 | |
| 7 | |
| 7 |