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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
SvenJacobs
Frequent Visitor

Help with availability

Hey All,

 

I need some help with availability calculations.

 

I have a table with:

FLATID | FLATNUMBER | LOCATION | NEIGHBOURHOOD | STARTDATE

1 | A0001 | A | 1 | 27/12/2017

2 | A0002 | A | 1 | 30/12/2017

X | A0001 | Park | 6 | 12/12/2020

I want to calculate the excact amount of availaible days 

Before I added the startdate we created a DataTable (Model) with all the dates between 01/12/2017 and 31/12/2030.

We created a measure 

Available flatDays = COUNT(DateTable[Date])*COUNT('Flats (Sharepoint)'[FlatID])
 
But this measure is not really correct. How can I fix that ?
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @SvenJacobs ,

 

Is this what you want? 

v-lionel-msft_0-1620033926332.pngv-lionel-msft_1-1620033942901.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @SvenJacobs ,

 

Is this what you want? 

v-lionel-msft_0-1620033926332.pngv-lionel-msft_1-1620033942901.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@SvenJacobs , what is the expected output, that is not clear here.

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry 

 

The output should be 

 

FlatID | NEIGHBOURHOOD  |Availability

X | X | X amount of days

 

 

So i can do a sum on the X amount of days in my kpi 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.