Distinct count running total by month

Craigc3814

Board Regular
Joined
Mar 7, 2016
Messages
217
I am trying to create a formula that creates a cumulative count on project ID for a set of data I have and increases monthly. I can find formulas online that work but only have one filter criteria. (example below)

But I need to factor in the fact that (Projects[Percent Complete] = 100 and Projects[Finishyear] = 2021

Cumulative Task by Finish Date =
CALCULATE(
DISTINCTCOUNT(Projects[PROJECTID]),
FILTER(
ALLSELECTED(Projects),
Projects[TASKNAME]="Advertise Date"))
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Inside calculate you can add multiple filters.
 
Upvote 0
Inside calculate you can add multiple filters.
Got it working for the most part, but I cannot get it to add up by month. My cumulative count is 6 but it is showing me 6 projects each month. The data is like this

January 1
February 2
March 3

So I need the results to be

January 1
February 3
March 6

Right now it just shows me 6 for each month

Cumulative Task by Finish Date =
CALCULATE(DISTINCTCOUNT(Projects[PROJECTID]), FILTER(ALLSELECTED(Projects),Projects[TASKNAME]="Advertise Date" && Projects[PERCENTCOMPLETE]=100 && Projects[Finish Year]=2021),FILTER(ALL(Projects[FINISHDATE]),P6Projects[FINISHDATE]<=MAX((Projects[FINISHDATE]))))
 
Upvote 0
@Craigc3814 , I hope someone jumps in. I'm not able to fully grasp what the formula does without seeing the data.
Good luck, sorry for not being more of a help.
 
Upvote 0

Forum statistics

Threads
1,223,688
Messages
6,173,841
Members
452,535
Latest member
berdex

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