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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
transformasian
Regular Visitor

Convert start/end date pair into an occupancy histogram

Hello Community!

 

I have a start date and an end date pair for each kid and I want to turn this into a chart showing occupancy by month.

All kids have a start date.

Some kids are still in residence, so their end date is blank.

 

I was going to create a column for each month/year and then sum each column, but I'm thinking there must be a better way, not to mention I have to add a new column every month.

 

Advice? Tips? Links? Samples?

 

Thanks from a novice user

 

Allen

5 REPLIES 5
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi  @transformasian,

 

Do you want to create a histogram visual like below?

 

Capture.PNG

 

I'm a little confused about your requirement, could you share your expected output, so that we can help further investigate on it?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Cherry,

 

Here are some sample rows:

PersonIDStartDateEndDate
024401041/9/20178/2/2017
026312041/9/20175/25/2017
002002031/24/2017 
023013062/9/201710/26/2017
026312045/25/20171/23/2018
027511048/30/20173/19/2018
0263110510/12/20173/19/2018
0008090711/27/20174/20/2018
002313032/12/20184/20/2018

 

and here's what I'd like to do - a histogram of headcount/occupancy by month:

YouthSpells.jpg

 

Ideas? Suggestions?

Hi,

 

My solution here should get you started - Distribute projected revenue annually.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello Ashish,

 

I am unable to download your solution - McAfee is blocking the site.

Can you post it here on the Power BI site somewhere?

 

Thanks.

Hi,

 

Download the solution workbook from here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.