Forum Discussion

rks's avatar
rks
Resolver II
1 year ago
Solved

Track Duration between Events

Hi Community,    I have the following setting. In my semantic model I have a table that contains event logs from some machines in a warehouse (stacker cranes). I have >20 stacker crane units and th...
  • v-pnaroju-msft's avatar
    1 year ago

    Thank you, lbendlin , for your response.

    Hi rks,

    We sincerely appreciate your inquiry on the Microsoft Fabric Community Forum.

    Please follow the steps mentioned below, which may help resolve the issue:

    1. In your SQL data source, compute event durations by comparing each event’s timestamp with the subsequent one for the same unit and date. Add a durationMinutes column to your fact table to make it interval-based.

    2. Import the preprocessed table into Fabric and establish links with your Date and Unit dimensions.

    3. Create measures to sum durationMinutes for both Active and Idle Mode states, and count Technical Disturbances lasting more than five minutes.

    4. Utilize GENERATESERIES to generate a minute-by-minute table and INTERSECT to align minutes with corresponding events.

    5. Use a Gantt chart visual (available on AppSource) with processCode as tasks, a combined datetime for start times, durationMinutes for length, and UnitKey for grouping.

    If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members encountering similar queries.

    Thank you.