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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jolien
Advocate I
Advocate I

Cumulative sum too high

 

Dear all,

 

I’m new to Power BI and I’m struggling to calculate the cumulative sum of my actuals.

I’ve transposed the [JAN], [FEB], [MAR], … columns from my dataset to [Actual] and [Time]. This caused each project to be shown 12 times, each time with a different [Actual] value:

Description-Actual-Time.PNG

 

Showing the SUM of Actuals for each month posed no issues, I just added a matrix and this is the result:

Year-Actual.PNG

However, calculating the cumulative sum has got me puzzled.

Based on other threads, I created this calculated column:

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   ALL(Daily);Daily[Time] <= EARLIER(Daily[Time])
)

And this was the result:

Year-Actual-Cumul.PNG

I have no idea what the correlation between the values 14.059.410,86 and 20.076.838.708,08 is, but it is definitely not *12, so I have no idea how it could be so high.

 

Adding a FILTER to the calculated column had no impact on the result

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   FILTER(ALL(Daily);Daily[Time] <= EARLIER(Daily[Time]))
)

When updating the calculated column to

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   FILTER(ALL(Daily[Actual]);Daily[Time] <= EARLIER(Daily[Time]))
)

the result was the same as the monthly total:

Year-Actual-Cumul2.PNG

 

Could anyone please help me out? I’ve been struggling with this too long already!

1 ACCEPTED SOLUTION
slanka
Helper I
Helper I

Hi,

 

Can you please confirm the "Actual" value in the 4rth row of the table, i.e 01/03/2019?

 


@Jolien wrote:

 

Dear all,

 

I’m new to Power BI and I’m struggling to calculate the cumulative sum of my actuals.

I’ve transposed the [JAN], [FEB], [MAR], … columns from my dataset to [Actual] and [Time]. This caused each project to be shown 12 times, each time with a different [Actual] value:

Description-Actual-Time.PNG

 

Showing the SUM of Actuals for each month posed no issues, I just added a matrix and this is the result:

Year-Actual.PNG

However, calculating the cumulative sum has got me puzzled.

Based on other threads, I created this calculated column:

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   ALL(Daily);Daily[Time] <= EARLIER(Daily[Time])
)

And this was the result:

Year-Actual-Cumul.PNG

I have no idea what the correlation between the values 14.059.410,86 and 20.076.838.708,08 is, but it is definitely not *12, so I have no idea how it could be so high.

 

Adding a FILTER to the calculated column had no impact on the result

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   FILTER(ALL(Daily);Daily[Time] <= EARLIER(Daily[Time]))
)

When updating the calculated column to

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   FILTER(ALL(Daily[Actual]);Daily[Time] <= EARLIER(Daily[Time]))
)

the result was the same as the monthly total:

Year-Actual-Cumul2.PNG

 

Could anyone please help me out? I’ve been struggling with this too long already!



If you want something like cumulative actual as "Running Total", you can create a Quick measure in that table. 

 

Running total.PNG

 

View solution in original post

2 REPLIES 2
slanka
Helper I
Helper I

Hi,

 

Can you please confirm the "Actual" value in the 4rth row of the table, i.e 01/03/2019?

 


@Jolien wrote:

 

Dear all,

 

I’m new to Power BI and I’m struggling to calculate the cumulative sum of my actuals.

I’ve transposed the [JAN], [FEB], [MAR], … columns from my dataset to [Actual] and [Time]. This caused each project to be shown 12 times, each time with a different [Actual] value:

Description-Actual-Time.PNG

 

Showing the SUM of Actuals for each month posed no issues, I just added a matrix and this is the result:

Year-Actual.PNG

However, calculating the cumulative sum has got me puzzled.

Based on other threads, I created this calculated column:

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   ALL(Daily);Daily[Time] <= EARLIER(Daily[Time])
)

And this was the result:

Year-Actual-Cumul.PNG

I have no idea what the correlation between the values 14.059.410,86 and 20.076.838.708,08 is, but it is definitely not *12, so I have no idea how it could be so high.

 

Adding a FILTER to the calculated column had no impact on the result

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   FILTER(ALL(Daily);Daily[Time] <= EARLIER(Daily[Time]))
)

When updating the calculated column to

Cumulative Actual =
CALCULATE(
   SUM(Daily[Actual]);
   FILTER(ALL(Daily[Actual]);Daily[Time] <= EARLIER(Daily[Time]))
)

the result was the same as the monthly total:

Year-Actual-Cumul2.PNG

 

Could anyone please help me out? I’ve been struggling with this too long already!



If you want something like cumulative actual as "Running Total", you can create a Quick measure in that table. 

 

Running total.PNG

 

Thanks @slanka, it was indeed easy as that. Creating a running total measure solved it 🙂

 

Thanks for the help!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.