Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Herdichek
Frequent Visitor

Elapsed time from a single column defined by state

Hi all,

 

I'm having an issue creating a column/measure that tells me the elapsed time during 2 different data states. 

I have a single column with date/time, and another with a detected state: "MOTION_DETECTED" and "NO_MOTION_DETECTED". 

 

Ideally, i'd like a column/measure that tells me the elapsed minutes from a motion has been detected, until it returns that no motion has been detected. Similarly, i would like a column/measure that tells me the elapsed time from no detected motion, until motion is detected. 

 

Any tips? Data sample can be seen below: 

Herdichek_0-1662550360241.png

 



1 ACCEPTED SOLUTION

Sorry for the late reply!

 

I found a solution to my problem by grouping the DeviceID together, and then indexing it by the timestamp. This guide was helpful in case others have a similar wish: 
https://radacad.com/power-query-transformation-pattern-convert-status-log-dates-table-to-start-and-e...

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Herdichek ,

Could you pls show what you want expected output reusult according your base data?

 

 

 

Best Regards

Lucien

Sorry for the late reply!

 

I found a solution to my problem by grouping the DeviceID together, and then indexing it by the timestamp. This guide was helpful in case others have a similar wish: 
https://radacad.com/power-query-transformation-pattern-convert-status-log-dates-table-to-start-and-e...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.