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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
abeirne
Helper II
Helper II

trying to find the number of occupied sites from a range of dates

Hi all, I have a very particular task. I am trying to find the number of occupied sites from a range of dates (Arrival to Departure). I have a calendar table connected to Arrival Date, and a Category table for my units/site types. I was thinking expanding the dates between arrival date and departure date, but I have a lot of data and don't want to slow things down.
What I am trying to see is that from December 9, 2022 through December 12, 2022, there were 2 Available Sites for each day, and this reservation occupied 1 site for the range of dates. Is there any possible way to do this? Thank you so much. 


Arrival-Departure.PNGAvailable Sites.PNG

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@abeirne , Such case we try split the data days wise and check

 

https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2

or

https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

Or refer to one file attached

 

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@abeirne , Such case we try split the data days wise and check

 

https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2

or

https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

Or refer to one file attached

 

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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