cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sanderskt1
New Member

Trying to calculate the time it takes between steps and use that as a filter.

Hi, I am relatively new with Power BI Desktop and I have some data that is showing a sequence of steps (Step 1, Step 2, Step 3) and they have a time stamp for each step completed, as well as a time column. Is there a way to find the time it took from step 1 to step 3? 

There are also multiple step 1's, step 2's, and step 3's, but I have grouped them by unique id # so that each set of 3 have their own unique number. 

1 ACCEPTED SOLUTION
Idrissshatila
Community Champion
Community Champion

Hello @sanderskt1 ,

 

You could use Datediff function and set the interval to hours, so it would give you the difference between two columns.

 

https://learn.microsoft.com/en-us/dax/datediff-function-dax

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin

View solution in original post

1 REPLY 1
Idrissshatila
Community Champion
Community Champion

Hello @sanderskt1 ,

 

You could use Datediff function and set the interval to hours, so it would give you the difference between two columns.

 

https://learn.microsoft.com/en-us/dax/datediff-function-dax

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors