cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dave_C
Resolver I
Resolver I

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 @Dave_C 

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.

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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors