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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.