Reply
ipon70
Helper I
Helper I
Partially syndicated - Outbound

Class Schedule with Random Start times

Hello,

I am trying to make a class scheduler. 

Here is what I have already cleaned up and imported.

The class list with length of class, the day and times everyone works.

I have working the "class picker" and "date to schedule".  What isn't working is the time frame for the student.

Lets say a worker shows up for work at 10:00am and works until 6:30pm.

I want to schedule a class at 2:00pm that will end at 4:30pm.

That person is here for that entire time frame, but because his start time is 10:00am the slicer doesn't know to include him.

In excel I could see a "IF(AND(worker start time <= class start time, worker end time<=class end time),"YES","NO"))  But in PowerBi I am struggling.

I believe I need something like Class start time + the Length of the class = X

then

X is <= Workers End Time

 

I hope that made sense.

I am working on Version: 2.100.1401.0 64-bit (December 2021) of the desktop software.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Syndicated - Outbound

HI @ipon70,

It sounds like a date range defined by multiple fields analysis requirement. I'd like to suggest you take a look at the following blog start end date part if it helps for your scenario.

Before You Post, Read This: start, end date 
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Syndicated - Outbound

HI @ipon70,

It sounds like a date range defined by multiple fields analysis requirement. I'd like to suggest you take a look at the following blog start end date part if it helps for your scenario.

Before You Post, Read This: start, end date 
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)