Forum Discussion
Create running cost column with two filters
- 9 years ago
so its good that a single branch ID is for the whole year and that your period field is a true date field type.... this is air code and I named your table: SampleData ..so you'll want to replace that
Running Cost =
CALCULATE (
SUM ( SampleData[Cost] ),
ALLEXCEPT ( SampleData, SampleData[Branch] ),
SampleData[Period] <= EARLIER ( SampleData[Period] )
)
so its good that a single branch ID is for the whole year and that your period field is a true date field type.... this is air code and I named your table: SampleData ..so you'll want to replace that
Running Cost =
CALCULATE (
SUM ( SampleData[Cost] ),
ALLEXCEPT ( SampleData, SampleData[Branch] ),
SampleData[Period] <= EARLIER ( SampleData[Period] )
)
Thanks, that solved it. I've tried different versions of the same, but didn't seem to get it right.
Lars
- CahabaData9 years ago
Memorable Member
I understand Norway has one of the biggest and most active PBI User Groups - you'll want to check them out - they are listed elsewhere in the Groups area of this site.