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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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