Forum Discussion

stevenbucher's avatar
stevenbucher
Icon for Microsoft Employee rankMicrosoft Employee
4 years ago
Solved

Issue with Cumulative Counts and filtering by relational value

I am trying to create a cumulate count of GitHub open/close issues for an entire organization and be able to filter by specific repos but when I create the measures for counting all in a row and then try to filter by the repository name it does not work.

 

Here are my two measures:

 

 

 

CumulativeClosedIssues = CALCULATE(COUNTA(Issues[ClosedAt]), FILTER(ALL(Issues), Issues[CreatedAt]<= MAX(Issues[CreatedAt])))

 

 

and

 

 

CumulativeIssues = CALCULATE(COUNTA(Issues[CreatedAt]), FILTER(ALL(Issues), Issues[CreatedAt]<= MAX(Issues[CreatedAt])))

 

 

 

This is the relationship between the two sets of data I am using.

 

It is a 1:many relationship with Repository ID and I am trying to create a filter with the Repository Name field in the Issues query.

 

Here is the dashboard view when all Repos are selected

 

and when I try to filter based on the vs-code it shortens the timescale (presumably when the repo was created) but keeps the same additive values of the ENTIRE GitHub Org instead of the specific repo within that org.

 

I expect it to reduce the values to just include the issues with the particular name? I am not sure exactly what I am missing with this problem. Please let me know if I can clarify anything or need more details to be able to get proper help on this problem. Thank you very much!

2 Replies