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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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