Forum Discussion
Running Total
- Anonymous2 years ago
Hi NewbieJono ,
I’d like to acknowledge the valuable input provided by sergej_og . His initial ideas were instrumental in guiding my approach. However, I noticed that further details were needed to fully understand the issue.
In my investigation, I took the following steps:
I create a table as you mentioned.
Then I create a new measure and a calculated column.
Measure = CALCULATE ( SUM ( 'Table'[Vol] ), FILTER ( ALL ( 'Table' ), 'Table'[Days] <= MAX ( 'Table'[Days] ) ) )Column = SUM('Table'[Vol])Finally I create another measure and get what you want.
Measure 2 = DIVIDE('Table'[Measure],MAX('Table'[Column]))Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi NewbieJono ,
I’d like to acknowledge the valuable input provided by sergej_og . His initial ideas were instrumental in guiding my approach. However, I noticed that further details were needed to fully understand the issue.
In my investigation, I took the following steps:
I create a table as you mentioned.
Then I create a new measure and a calculated column.
Measure =
CALCULATE (
SUM ( 'Table'[Vol] ),
FILTER ( ALL ( 'Table' ), 'Table'[Days] <= MAX ( 'Table'[Days] ) )
)
Column = SUM('Table'[Vol])
Finally I create another measure and get what you want.
Measure 2 = DIVIDE('Table'[Measure],MAX('Table'[Column]))
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- NewbieJono2 years agoPost Partisan
Thanks for your help. howver this does not seem to work. It may be because my vol column is a measure that returns a result
- sergej_og2 years agoSuper User
Can you provide this result (from your measure) as a calculated column in your model?
Could make sense to do so.
But you know your model best.
Regards- NewbieJono2 years agoPost Partisan
My volume measure is:
Volume Measure = CALCULATE ( SUM ( 'FACT- Output'[Total] ) + CALCULATE ( SUM ( 'FACT - Process Volumes'[Volume] ), 'FACT - Process Volumes'[NEW Days Range] = "0-1 Days" ) )with your code i have managed to get the running total. i just now need to divide each row by the total