cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

WhatsApp Image 2021-08-20 at 21.43.21.jpegGuys, 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
selimovd
Super User
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
 

View solution in original post

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
 

View solution in original post

2 REPLIES 2
selimovd
Super User
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
 

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
 

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

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

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

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

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

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

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!