March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Everyone,
Hope someone can assist a novice PowerBI user.
The problem: I need to calculate the time (in minutes) between each row in the "Event Date" column (see screenshot below).
So, for instance, I want to know the time difference between the second row and first row of the "Event Date" column. This should be 0, but if you have a look at my "Time Difference" column, something funny is going on.
Here is my DAX code:
Hopefully someone can help!
Thank you.
Solved! Go to Solution.
@Anonymous , create a new column
datediff([Event Date],maxx(filter(Table, [Index] = earlier([Index])-1),[Event Date]), minute)
@Anonymous , create a new column
datediff([Event Date],maxx(filter(Table, [Index] = earlier([Index])-1),[Event Date]), minute)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
86 | |
70 | |
51 |
User | Count |
---|---|
206 | |
150 | |
97 | |
78 | |
69 |