cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How can I get the amount of time between these events?

I have a table that tracks different status's.  I have created date and times, for each event.  I need to know how to get the amount of time between events.  

 

Capture.JPG

2 REPLIES 2
v-cherch-msft
Microsoft
Microsoft

Hi @Anonymous 

You may create measures like below.

Last_event_date = CALCULATE(MAX('Table1'[Date]),FILTER(ALL('Table1'),'Table1'[Index]=MAX('Table1'[Index])-1))
Measure = DATEDIFF([Last_event_date],MAX(Table1[Date]),HOUR)

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

This is the query that the my coder has built to get data into his world, but we need to get this up to the Power BI system to use.

This needs to be in a direct query model if at all posible

 

p1.png

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

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!

Top Solution Authors