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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.