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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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