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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
RichOB
Post Partisan
Post Partisan

Need a date Measure to determine a count when there is no end date

Hi,

 

I have 2 dog shelters (3 units in 2 locations) and my end goal is to have a line graph with the month on the X axis showing the % of how many days per month the units are unused.

 

- the Start_Date_Unoccupied is when a dog gets adopted and the unit becomes unused

- the End_Date_Unoccupied is when a new dog fills that unit

- the Days_Between count is the number of days a unit is empty

- Total_Monthly_Possible_Count - average of days per month to use for calculation

 

RegionCityDogTotal_Units_In_ShelterStart_Date_UnoccupiedEnd_Date_UnoccupiedDays_BetweenTotal_Monthly_ Possible_Count 
NorthGlasgowMaxBedspace104/04/202410/04/2024630.43
NorthGlasgowRexBedspace206/04/202418/04/20241230.43
NorthGlasgowMillyBedspace307/04/2024  30.43
SouthLondonBuddyBedspace427/04/202414/06/20244830.43
SouthLondonBlueBedspace522/05/202411/06/20242030.43
SouthLondonAlbaBedspace606/06/2024  30.43

 

In Milly's example, the End_Date is blank and will remain blank until she is adopted. How can I make this cell appear as 30/04/2024  & 30 days between for example?

 

In Buddy's example, the unit is unoccupied from April to June. As it started on the 27th of April, how can the total for April only be 3 days? (and the same principle for May and June onwards)

 

How I need the graph structured. The % on the line graph should show:

April 28% (51 days unused against the 182 possible unused days for the 6 shelters combined)

May 36% (66 days unused against the 182 possible unused days for the 6 shelters combined)

 

Mays breakdown:

Unit 4 has 31 days

Unit 5 has 10 days

Unit 6 has 25 days

 

Thanks so much for your help in advance! Please let me know if you have any questions.

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

lbendlin_0-1728311136360.png

Unit 6 has 25 days in June, not in May

 

 

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

lbendlin_0-1728311136360.png

Unit 6 has 25 days in June, not in May

 

 

 

Helpful resources

Announcements
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.