Measure to calculate cumulative to date on a specific ID and also just for a month

abalserv

New Member
Joined
Oct 25, 2013
Messages
30
hi Folks
I want to create two measures for a pivot table.
In columns
I got month/year (pulled in from a related calendar table)
Then I have account headings e.g. Revenue, Expenses

In Row labels I have a list of project IDs

In my values I have created following measures:
Month_only - this to show the transactions for that month only, for that account heading only, for that specific project.
The measure called [Total_accounted_field] I am using for this is:
=SUM('transaction_table'[accounted_field])

Then for the cumulative I am using the following:
(I want this field to show the total in this category to date the projects could stretch over a number of years which is why I'm not using the TotalYTD)

calculate([Total_accounted_field],all(Calendar[Date]))
Unfortunately this is giving me exactly the same as [Total_accounted_field]. I had thought that using ALL would clear all dates - just giving me a total..

Thanks as always...
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,223,941
Messages
6,175,541
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top