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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
RichOB
Helper IV
Helper IV

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.