Forum Discussion
Running Total for non date column
Hi sharong ,
I think the issue is loading the measure. The measure seems bit complex.
I suggest you to use SUMX and minimize the formula.
Regards,
Nikhil Chenna
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Hi,
Can you provide me the minimized formula using sumx . will try it out
- NikhilChenna3 years agoSkilled Sharer
Hi sharong ,
Can you only share you sample table as well as a expected output table for it. so that it will be easy for me to test it out too.
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 agoHelper I
This is the existing table i have. I want a new column "Running sum" of receivables based on rank st.
Total number of rows in dataset is 18079 rows.- NikhilChenna3 years agoSkilled Sharer
Hi sharong ,
Create the below measure ,
Running total sales =
VAR IndexRank = [Rank ST]
RETURN
CALCULATE (
SUM ( 'table1'[Receivables]),
FILTER (
ALL ( 'table1'[customer_no] ),
IndexRank
>= RANKX ( ALLSELECTED ( 'table1'[customer_no] ), [sum],, ASC, DENSE )
)
)
Regards,
Nikhil Chenna
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!