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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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.

Share with Power BI Enthusiasts: 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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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