Forum Discussion
Running Total Struggles
Try this.
1) First create a calculated column to establish the YearPeriod for your table:
YearPeriod Column = Table[Year] * 100 + Table[Period]
2) Next create a dimension table for your YearPeriod/Year/Period
3) Join the Dim YearPeriod Table to your fact table in a one-to-many relationship
5) Create a measure which is the sum of the column you have created for Raised Files:
Sum of Files Raised = SUM(Table1[Files Raised])
6) Create the running totals measures you need:
Running total YearPeriod =
CALCULATE([Sum of Files Raised],
FILTER(ALL ('Dim YearPeriod'),
'Dim YearPeriod'[YearPeriod] <= MAX('Dim YearPeriod'[YearPeriod])))Running total by period =
CALCULATE([Sum of Files Raised],
FILTER(ALL ('Dim YearPeriod'),
'Dim YearPeriod'[Period] <= MAX('Dim YearPeriod'[Period])))Running total by Year =
CALCULATE([Sum of Files Raised],
FILTER(ALL('Dim YearPeriod'),
'Dim YearPeriod'[Year] <= MAX('Dim YearPeriod'[Year])))
And this is the result:
PaulDBrown
Hi, Thank you for all your help, and sorry for my slow reply. I had to step away from the computer for a couple of days. I have not been able to follow your instructions due to errors at every stage. I think it is because of the way the data is presented. I have cleaned up and anonymised the data as far as I can. How do I upload the file to share with you?
Thanks,
Joel
- PaulDBrown5 years agoCommunity Champion
You can upload a file to a cloud service (Onedrive, Google Drive, Dropbox...) and share from there.