Forum Discussion
Running Total for non date column
amitchandak can you please help me in this. I am not getting a proper reply from anyone
https://drive.google.com/file/d/1IRw6GIiZyFeCXMb3-ARe_WQh86Yva7zf/view?usp=sharing
If I drag the running sum measure into the table visual, it keeps loading and not coming up for 18k rows. But for less rows like first 1000 rows, its working. Can you please provide me with a solution on urgent basis ?
- NikhilChenna3 years ago
Skilled Sharer
Hi sharong ,
Is this the output you want ?
Regards,
Nikhil Chenna
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution! - sharong3 years ago
Helper I
Yeah but why every value in running sum column is same. I want a cumulative sum
- sharong3 years ago
Helper I
Hi NikhilChenna
I tried using the below codes. It takes some 4-5 minutes to load the table. Is there any way of optimizing the below code. Can you help me out.TestRank = IF(ISBLANK([Total Receivables]), BLANK(),RANKX (SUMMARIZE (ALLSELECTED ( Table ),Table[CUSTOMER_NO], Table[CUSTOMER_NAME], Table[COMPANY_CODE], Table[COUNTRY], Table[BUSINESS_UNIT]),CALCULATE ( SUM ( Table[Total Receivables] ) ),,DESC,DENSE))
-----------------------------Test Running Total =VAR CurrentRank = [TestRank]VAR Summarizetable =CALCULATETABLE (SUMMARIZE ( Table, Table[CUSTOMER_NO], Table[CUSTOMER_NAME], Table[COMPANY_CODE],Table[BUSINESS_UNIT],Table[COUNTRY] ),ALLSELECTED ( Table ))VAR small =ADDCOLUMNS ( Summarizetable, "@Sales", [Total Receivables], "@Rank", [TestRank] )VAR Result =SUMX ( FILTER ( small, [@Rank] <= CurrentRank ), [@Sales] )RETURNResult - sharong3 years ago
Helper I
hi NikhilChenna 7is there any update on this issue?