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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
NewbieJono
Post Partisan
Post Partisan

Count if event occurs on a date

Hello all, i wish to sum the work time (Mon-Fri) for a staff member. However over time, working patterns may change therefore I have a valid to and from date in the date, I would like to use a date drop-down and calculate the total hours at that point in time.

 

i have no idea where to start, I have the following table and a date table. i am also not sure what date I should link to the date table as I am now dealing with two date fields!

 

Any help would be much appreciated. Thank you

 

Capture.PNG

3 REPLIES 3
Anonymous
Not applicable

Hi @NewbieJono 

Do you mean you want to get all hours that meet the date you chosen? can you provide some smple output you want?

 

Best Regards!

Yolo Zhu

 

Yes, if i select todays date, it would show total 6 active clients (not 7). The total hours work would add the 7 days but exclude client member 103, as they hours ended in January and are no longer active

Anonymous
Not applicable

@NewbieJono  The first thing I would do with this table is to unpivot the days of the week columns and create one Day of the Week column and one Hours column.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors