Forum Discussion
pablopablo
5 years agoFrequent Visitor
Help with running cumulative count
Hi, I have the following code which correctly gives me a running total based on a week number of total jobs opened per week. However, i need to amend so it does not count those jobs which have al...
- 5 years ago
Hi pablopablo ,
Try this.
Measure = VAR x = CALCULATE( COUNT(Sheet10[Job No]), FILTER( Sheet10, [Week Opened] <= MAX('Calendar'[Week]) && [Week Closed] > MAX('Calendar'[Week]) ) ) RETURN xBest regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
5 years agoSuper User
pablopablo , You have use crossfilter to remove any active join. refer to my blog for that https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970
pablopablo
5 years agoFrequent Visitor
Hi,
I used your article and have the following code:
Weekly Cummulative = CALCULATE(COUNTx(FILTER('Live_Roles_Feed',Live_Roles_Feed[Date opened]<=max('Calendar_New'[Date]) && (ISBLANK('Live_Roles_Feed'[Date job closed]) || 'Live_Roles_Feed'[Date job closed]>max('Calendar_New'[Date]))),('Live_Roles_Feed'[Job no.] )),CROSSFILTER(Live_Roles_Feed[Date opened],'Calendar_New'[Date],None))
However, it displays like this. I have even created a calendar table using your guide and linked accordingly