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
francisthe63
Helper I
Helper I

Daily data quantity update by week

Hello,

 

I look for a measure DAX in Power BI that answers to this problem : 

 

I have daily Data  like this

 

ID Start Date End Date

1 1/01 3/01

2 4/01 

3 2/01 5/01

 

My measure calculate for a day, the average of the age of the ID

 

Exemple

 

1/01 : 0 (there is only 1)

2/01 : 1 (1 has 1 day)

3/01 : 1.5 (1 has a age of 2 and 3 has a age of 1 = 1+2/2)

4/01 : 1 has end date of 3/01 so stay with an age of 2, 3 has a age of 2 now) = 2+2/2 = 2

5/01 : 1 = 2, 3 = 3 and 2 = 1, => 2+3+1 = 6 / 3 = 2

6/01 : 1 = 2, 3 ended in 5/01 so = 3 and 2 = 2, => 2+3+2 = 7/3

 

Do you know how to do this ?

 

Thank you advance

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

ThxAlot_0-1709569977173.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

1 REPLY 1
ThxAlot
Super User
Super User

ThxAlot_0-1709569977173.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



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.