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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
rohitthb
Frequent Visitor

Display cumulative no. of sessions versus time period - start time to end time

Hi,

 

I am struggling to find a way of showing during what time period are the busiest for an employees. The data is available at employee session level - where for each employee we get a start time and an end time. If of any help, the time difference between starttime and endtime can be 10 mins, 15 mins, 30 mins, 45 mins, 60 mins or 90 mins.

 

rohitthb_0-1610791615471.png

I want to show between what hours is the employee busiest in a month - In a time range of 15 mins. 

 

rohitthb_0-1610792488680.png

 

 

 

 

 

 

 

 

 

10:00 AM row denoting that there were 10 sessions in a month when the employee was busy between 10:00 AM to 10:15 AM (Start time was less than or equal to 10:00 AM and end time was greater than or equal to 10:15 AM).

 

Been struggling to do this for quite some time. 

 

1 ACCEPTED SOLUTION

Created a new table of 15 mins slot called timeslot and then used the below mentioned measure which worked. Thanks to the post 
 
Counter = CALCULATE(COUNT(ip_ahp_order[EpisodeNo]),FILTER(ip_ahp_order, ip_ahp_order[Orderstarttime] <= Min(timeslot[time]) && ip_ahp_order[Orderendtime] > MIN(timeslot[time])))

View solution in original post

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

Thanks for sharing😉.

 

Paul Zheng _ Community Support Team

rohitthb
Frequent Visitor

Created a new table of 15 mins slot called timeslot and then used the below mentioned measure which worked. Thanks to the post 
 
Counter = CALCULATE(COUNT(ip_ahp_order[EpisodeNo]),FILTER(ip_ahp_order, ip_ahp_order[Orderstarttime] <= Min(timeslot[time]) && ip_ahp_order[Orderendtime] > MIN(timeslot[time])))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.