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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Shawkins566
Helper I
Helper I

Using Measures for Future Dates in a table

Hi,

 

I'm trying to create a resourcing dashbord.  I have a list in a sheet of all bookings of staff onto projects it also includes all the necessary information such as total working hours for that person as well as the number of hours assigned to that project and the start date and end date of the project.

 

I created a measure to show the current availability for all staff (which was just Max Available Hours - SUM(Hours)) and in my table I just have list of Names and the Measure beside it.  

 

I want to figure out how to look at availability in the future, I first tried changing the end date but that removed a number of people from the list which I don't want to do, I want all the Names to stay and just the available hours be updated.  I think using End Date is the wrong way to go about it, but I can't seem to figure out the best way.

Any ideas?

Thanks

S

2 REPLIES 2
Anonymous
Not applicable

Hi  @Shawkins566 ,

I created some data:

vyangliumsft_0-1718764827963.png

You might consider creating a 24-hour interval date table that has no join relationship with the main table, and using measure to display the value

Here are the steps you can follow:

1. Create calculated table.

Date = GENERATESERIES (DATE (2024, 01, 01), NOW(), 0.041666667)

vyangliumsft_1-1718764827965.png

2. Create measure.

availability =
var _select=
SELECTEDVALUE('Date'[Value])
var _DATEDIFF=
DATEDIFF(
  _select,MAX('Table'[End Time]),HOUR)
return
IF(
    MAX('Table'[End Time])<=_select && MAX('Table'[total working hours]) <= MAX('Table'[assigned time]),MAX('Table'[assigned time]) - MAX('Table'[total working hours]),BLANK())
availability hours =
SUMX(
    ALLSELECTED('Table'),[availability])

3. Result:

vyangliumsft_2-1718764852033.png

If my explanations don't meet your expected results or don't understand your question, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

I don't think this is quite what I'm after.  I'll share some sample data and try and describe what I'm looking for a bit better.  I'll share once I've created some sample data.  

Many thanks

Sarah

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.