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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How to calculate Spill and accumulated data

Hi everyone, i want to caculate spill from previous hour and add into the next hour and calculate accumulated data for next hour.

Spill = Demand - Capacity + Previous hour accumulated 

Accumulated Data = Capacity - (spill from previous hour+  Demand) 

 

DateTime Hour

 Rate

Resources

Capacity

Demand

Spill ?    

Accumulated ?

2021-09-06 14:00:00

2.8

5

14

2.25

-11.75

0

2021-09-06 15:00:00

2.8

5

14

2.5

-11.75

0

2021-09-06 16:00:00

2.8

5

14

2.5

-11.75

0

2021-09-06 17:00:00

2.8

2

5.6

2.5

-3.1

0

2021-09-06 18:00:00

2.8

2

5.6

12.5

6.9

6.9

2021-09-06 19:00:00

2.8

2

5.6

0

1.3

1.3

2021-09-06 22:00:00

2.8

6

16.8

20

4.5

4.5

2021-09-06 23:00:00

2.8

6

16.8

1.25

-11.5

0

2021-09-07 00:00:00

2.8

6

16.80

1.25

 

 

2021-09-07 01:00:00

2.8

6

16.80

4.25

 

 

2021-09-07 02:00:00

2.8

6

16.80

3.75

 

 

2021-09-07 03:00:00

2.8

6

16.80

7.75

 

 

 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @AryaS,

You cannot calculate the result.

This is because the first second result is based on the first result, the third result is based on the second result, and that result is such.

However, the first and second results do not exist. The DAX expressions are analyzed on the basis of the available data.

 

You can reach this result by Excel.

vchenwuzmsft_0-1631236408651.png

 

vchenwuzmsft_1-1631236408655.png

 

 

Best Regards

Community Support Team _ chenwu zhu

 

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
v-chenwuz-msft
Community Support
Community Support

Hi @AryaS,

You cannot calculate the result.

This is because the first second result is based on the first result, the third result is based on the second result, and that result is such.

However, the first and second results do not exist. The DAX expressions are analyzed on the basis of the available data.

 

You can reach this result by Excel.

vchenwuzmsft_0-1631236408651.png

 

vchenwuzmsft_1-1631236408655.png

 

 

Best Regards

Community Support Team _ chenwu zhu

 

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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