cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
coldfire
Frequent Visitor

cumulative sum

I want to have a cumulative value for each row that you may see in the "TARGET" column.
But I have more than 1 Million rows so I keep getting the same error as "not enough memory error" while I applied codes like below:
 
--------------------------------------------------------------------------------
 
---Running Total COLUMN =
CALCULATE (
    SUM ( 'All Web Site Data (2)'[UniquePageviews] ),
    ALL ( 'All Web Site Data (2)' ),
    'All Web Site Data (2)'[Date] <= EARLIER ( 'All Web Site Data (2)'[Date] )
)---
 
or

 

Running Total MEASURE = 
CALCULATE (
    SUM ( 'All Web Site Data (2)'[UniquePageviews] ),
    FILTER (
        ALL ( 'All Web Site Data (2)' ),
        'All Web Site Data (2)'[Date] <= MAX ( 'All Web Site Data (2)'[Date] )
    )
)
---------------------------------------------------------------------------

 

I would be glad if you have an effective solution and suggestions to get a quick result without straining the system memory.

 

Thanks for all.
bI Forum ScreenShot.png

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

Hi  @coldfire,

 

Your dax expression has no problem,try increasing the Maximum allowed to 16000 under File / Options and Settings / Options / Global / Data Load.  Data Cache Management Options.

 

vkellymsft_1-1628751474448.png

 

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi  @coldfire,

 

Your dax expression has no problem,try increasing the Maximum allowed to 16000 under File / Options and Settings / Options / Global / Data Load.  Data Cache Management Options.

 

vkellymsft_1-1628751474448.png

 

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

View solution in original post

amitchandak
Super User
Super User

@coldfire , In file -> Options and setting -> Option -> data load ->increase data management cache and try

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

Hi, @amitchandak 

thanks for your answer. I tried this before but it didn't work.

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.