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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Samhunt
Helper II
Helper II

Need help counting active properties

Hi guys, 

 

I am preparing a dashboard for a short term rental management company. 

 

In their portfolio they have properties that at some point they get deactivated.

 

I need a DAX formula (I guess) to count them as active and when they are deactivated to not count them but of course I want this to be date sensitive. For example if I try to get reports for the year 2023 I want these to be based on all the properties that were active at some point during that year. 

 

Maybe have a column at the properties table marking the date that the property was first activated and then another column showing the deactivation date. If the deactivation date is null then this means the property is still active and have the property counted for the years that the activation year is equal or smaller. if the deactivation year has a value is equal or higher. Meaning if a property was first active in 2021 and deactivated in 2024 I want it to be counted as an active property for the years 2021,2022,2023 and 2024

 

Thanks for your time I hope it makes sense. 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar problem in the attached PBI file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Samhunt ,

 

Did @Ashish_Mathur  reply solve your problem? If so, please mark it as the correct solution, and point out if the problem persists.

 

Best Regards,
Adamk Kong

Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar problem in the attached PBI file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.