Forum Discussion
NewbieJono
2 years agoPost Partisan
Running Total
Hello all, i have a measure which creates a volume. how can I use dax to create a % based on total. e.g 0-1 would be top row / total 1-2 would be , total of top two rows / total 2-3 would be, ...
- 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.
sergej_og
2 years agoSuper User
Maybe you can try with a IF-Statement.
Like this...
IF( [Volume measure] <> BLANK(),
[Tes6])
NewbieJono
2 years agoPost Partisan
Thanks Everyone for your help with this