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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Cumulative Count of Assets using Start Dateand End Date

Hi there,

 

I have this table "ACTIVE ASSETS": 

 

Asset Nr   Start Date   End Date
001    01 01 2020   20 01 2020
002   05 01 2020   30 01 2020
003    10 01 2020   15 02 2020
001   02 02 2020   25 02 2020

 

I would like to get the amount of active assets per day: 

COUNT ACTIVE ASSETS Date
         1   01 01 2020
         2   05 01 2020
         3   10 01 2020
         2   20 01 2020  (-1 end of use of Asset 001)
         1   30 01 2020  (-1 end of use of Asset 002)
         2   02 02 2020  

 

 

I have a date table Date[Date]

 

Appreciate any help! Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try the following formula to create a measure:

COUNT ACTIVE ASSETS =
CALCULATE (
    DISTINCTCOUNT ( 'ACTIVE ASSETS'[Asset Nr] ),
    FILTER (
        'ACTIVE ASSETS',
        'ACTIVE ASSETS'[Start Date] <= MAX ( 'Date'[Date] )
            && 'ACTIVE ASSETS'[End Date] > MAX ( 'Date'[Date] )
    )
)

 The final output is shown below:

COUNT ACTIVE ASSETS.PNG

Best Regards,
Eyelyn Qin
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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try the following formula to create a measure:

COUNT ACTIVE ASSETS =
CALCULATE (
    DISTINCTCOUNT ( 'ACTIVE ASSETS'[Asset Nr] ),
    FILTER (
        'ACTIVE ASSETS',
        'ACTIVE ASSETS'[Start Date] <= MAX ( 'Date'[Date] )
            && 'ACTIVE ASSETS'[End Date] > MAX ( 'Date'[Date] )
    )
)

 The final output is shown below:

COUNT ACTIVE ASSETS.PNG

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors