cancel
Showing results for
Did you mean:
Anonymous
Not applicable

## Count of rows in each column that reflects the count of another row column data

Guys, I want to create a measure. In the above pic, you can see Sprint number column and category and count(id) column. so the required measure is, for each sprint number I want the total count of category. there you can see for 331 sprint numbers, in category punted issues, issues added, completed issues, issues not completed there are of total count in count(id) column is 11+5+1+14=31. so I need a measure like for 331 there is a total of 31 issues, for next 338 there ---- issues. I need a measure like this .counting of category for each sprint number. Not Only measure . how It can be achieved

2 ACCEPTED SOLUTIONS
Super User

Hey @Anonymous ,

from your example I understood that you want the sum of COUNT(ID) by SPRINT_NUMBER, is that right?

The following measure should do that:

``````Count per Sprint =
CALCULATE(
SUM( myTable[COUNT(ID)] ),
ALLEXCEPT(
myTable,
myTable[SPRINT_NUMBER]
)
)``````

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Super User

Hey @Anonymous ,

did it work with the measure I proposed?

I'm curious if you could solve this issue 🙂

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

2 REPLIES 2
Super User

Hey @Anonymous ,

from your example I understood that you want the sum of COUNT(ID) by SPRINT_NUMBER, is that right?

The following measure should do that:

``````Count per Sprint =
CALCULATE(
SUM( myTable[COUNT(ID)] ),
ALLEXCEPT(
myTable,
myTable[SPRINT_NUMBER]
)
)``````

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Super User

Hey @Anonymous ,

did it work with the measure I proposed?

I'm curious if you could solve this issue 🙂

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Announcements

#### The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

#### Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

#### Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!