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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
ipon70
Helper I
Helper I

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

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

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.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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