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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
kattlees
Post Patron
Post Patron

Days Overnight Count

I have a table with Name, Arrival Date, Departure Date.


Examples would be:

Jim Smith       8/1/18       8/5/18

John Doe       8/1/18       8/2/18

Sally Jones     8/2/18       8/2/18

Billy Bob        8/7/18        8/9/18

 

I can calculate the number of days someone stays. But how do I get a chart that shows how many people were there on a given day and even show days where no one stayed. So above information would give me this:

 

8/1/18    2

8/2/18    1

8/3/18    1

8/4/18    1

8/5/18    0

8/6/18    0

8/7/18    1

8/8/18    1

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kattlees

 

For this, you need to expand the values for the date range for each stay. Say for ex, you should have 5 records for Jim , one for each day of his staying.

 

Recently, provided the solution for this scenrio, you can refer the solution here.

 

https://community.powerbi.com/t5/Desktop/chart-with-start-and-end-date/m-p/484219#M225455

 

 

Thanks

Raj

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @kattlees

 

For this, you need to expand the values for the date range for each stay. Say for ex, you should have 5 records for Jim , one for each day of his staying.

 

Recently, provided the solution for this scenrio, you can refer the solution here.

 

https://community.powerbi.com/t5/Desktop/chart-with-start-and-end-date/m-p/484219#M225455

 

 

Thanks

Raj

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.