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
EgbertMellema
Regular Visitor

Show events between times / creating timeslots

Hi,

 

I'm working in a datase with telephone info. In that database there is 1 column with the starttime of the call. There is no column with endtime.
Ik want to create a measure, or a new column with timeslots; so I can calculate how many calls there are between
8:30 -11:00,
11:00 - 13:30,
13:30 - 16:00,
16:00 and 17:30


Does anybody have a solution for this?

Many thanks in advance....

Egbert

1 ACCEPTED SOLUTION
mhossain
Solution Sage
Solution Sage

@EgbertMellema 

 

In addition to @amitchandak example, try attached pbix with mapping table approach, where you can control your timeslot and sort accordingly.

Let me know if this is what you were looking for.

View solution in original post

3 REPLIES 3
mhossain
Solution Sage
Solution Sage

@EgbertMellema 

 

In addition to @amitchandak example, try attached pbix with mapping table approach, where you can control your timeslot and sort accordingly.

Let me know if this is what you were looking for.

Thanks! This is exactly what I was looking for. Help is very much appreciated!

amitchandak
Super User
Super User

@EgbertMellema , Create a new column like

 

new column =
var _time = time(hour([col1]),minute([col1]),second([col1]))
return
switch(true () ,
_time >= time(8,0,0) && _time <= time(11,0,0), " 8:30 -11:00" ,
_time > time(11,0,0) && _time <= time(13,30,0), " 11:00 - 13:30" ,
/// add other
"16:00 and 17:30" //default
)

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.