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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello
Id like to subtract these two values to get the amount of minutes the order took from statues pending to statues in kitchen via a custom column
Solved! Go to Solution.
You can do it in dax with an easy calculate column then change the format to TIME.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
You can do it in dax with an easy calculate column then change the format to TIME.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Hossam , Create a new column like
new column =
var _min = maxx(filter(Table, [order_id] = earlier([order_id]), [created_date] <earlier([created_date]) && [Status_after] = "pending"),[created_date])
return
if([Status_after] = "in_kitchen", datediff(_min, [created_date], minute))
Hello, @amitchandak I want to do this for all of the rows no matter what the statues are because its a whole process of statues.
so basically I want to subtract the second row of the column created at with the cell above it
Think you Can help me?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |