Forum Discussion
Creating a running total with values from a measure
Thank you for the quick response but the suggested measure doesn't seem to work.
Most likely due to the fact that Weight (add) is aready a measure by itself. Any suggestions on how to resolve this?
Cumm = CALCULATE(SUM([Weight (ad)]),filter(date,date[date] <=maxx(date,date[date])))
Can you share sample data and sample output.
- fbron6 years agoFrequent Visitor
amitchandak Unfortunately it's not possible to share the dataset since I'm working directly with the data from our ERP database.
Perhaps some idditional info can be of help:Table - Value_posts
Column: Article
Column: Quantity
Column: Adjustment (this is a checkbox within the ERP and translates to 0 or 1)
Column: Weight
Column: Posting date
Measure: Weight (add)
Weight (add) = -1*CALCULATE(SUM('Value_posts'[Weight]);'Value_posts'[adjustment]=0)
Table:Date
This is just a regular date table (incl hirarchy)
What I'm looking for is a matrix with a running total on the measure "weight (add)" per month / year.
Calendar year JAN FEB MARCH APRIL ETC
2017
2018
2018
Both years and months come from the date table and the values presented should come from the Weight add measure. Presented as a running total.
Hope this info can be of help.
Thanks in advance.