How to create new measure that calculates occupancy per month between two date columns?

GrapeApe561

New Member
Joined
Mar 1, 2018
Messages
3
Hello experts of Power BI,
I have a table that has three columns, one is the name of the person, one is the date they entered and the last column is the date they left. I am trying to create a new table or measure on Power BI that calculates the occupancy for each patient per month. For example, my original table looks something like this:
http://www.screencast.com/t/s5iugCYKqQ8n

The table or measure I am trying to create would look something like this: http://www.screencast.com/t/tGNGibLh145


Can someone please help me figure out how I can accomplish this? I have been researching and trying different things on Power BI to do this, but I am lost. I would highly appreciate if anybody can help me figure it out, I will compensate with coffee via PM to anyone who can guide me to the right way. Thank you!
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Watch MrExcel Video

Forum statistics

Threads
1,096,357
Messages
5,449,961
Members
405,580
Latest member
MRJT

This Week's Hot Topics

Top